1
0
Fork 0

For #150 - Adds more style to the urlbar

master
Jeff Boek 2019-01-09 16:19:54 -08:00 committed by Colin Lee
parent 3378ee4209
commit da939bba50
2 changed files with 8 additions and 0 deletions

View File

@ -9,6 +9,7 @@ import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import kotlinx.android.synthetic.main.fragment_home.*
import org.mozilla.fenix.R
@ -24,6 +25,12 @@ class HomeFragment : Fragment() {
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
toolbar_wrapper.clipToOutline = false
toolbar.apply {
textColor = ContextCompat.getColor(context, R.color.searchText)
textSize = 14f
hint = "Search the Web or enter address"
hintColor = ContextCompat.getColor(context, R.color.searchText)
}
}

View File

@ -5,4 +5,5 @@
<color name="colorAccent">#D81B60</color>
<color name="searchStroke">#331b215e</color>
<color name="searchText">#0C0C0D</color>
</resources>