ui: misc ui updates
Do a couple of UI changes I thought of over this week: - Make the detail header text neutral, mostly so I can make it so that the accent only corresponds to active thingsd - Remove the vanity elevation from the cover images. This is mostly to abide by Material Design. - Move the about screen to it's own menu slot on the main fragment.
This commit is contained in:
@@ -98,6 +98,12 @@ class HomeFragment : Fragment() {
|
||||
)
|
||||
}
|
||||
|
||||
R.id.action_about -> {
|
||||
parentFragment?.parentFragment?.findNavController()?.navigate(
|
||||
MainFragmentDirections.actionShowAbout()
|
||||
)
|
||||
}
|
||||
|
||||
R.id.submenu_sorting -> { }
|
||||
|
||||
// Sorting option was selected, check then and update the mode
|
||||
|
||||
@@ -41,14 +41,6 @@ class SettingsFragment : Fragment() {
|
||||
val binding = FragmentSettingsBinding.inflate(inflater)
|
||||
|
||||
binding.settingsToolbar.apply {
|
||||
setOnMenuItemClickListener {
|
||||
findNavController().navigate(
|
||||
SettingsFragmentDirections.actionShowAbout()
|
||||
)
|
||||
|
||||
true
|
||||
}
|
||||
|
||||
setNavigationOnClickListener {
|
||||
findNavController().navigateUp()
|
||||
}
|
||||
@@ -57,7 +49,7 @@ class SettingsFragment : Fragment() {
|
||||
binding.applyEdge { bars ->
|
||||
binding.settingsAppbar.updatePadding(top = bars.top)
|
||||
|
||||
// The padding + clipToPadding method does not seem to work with a
|
||||
// The padding + clipToPadding method does not work with a
|
||||
// FragmentContainerView. Do it directly in SettingsListFragment instead.
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user