ui: improve misc ui elements
Make some minor UI tweaks across the app.
This commit is contained in:
@@ -37,4 +37,6 @@
|
||||
<dimen name="elevation_large">8dp</dimen>
|
||||
|
||||
<dimen name="offset_thumb">4dp</dimen>
|
||||
|
||||
<dimen name="abc_dialog_list_padding_top_no_title">0dp</dimen>
|
||||
</resources>
|
||||
@@ -5,7 +5,6 @@
|
||||
<!-- Custom popup menu theme -->
|
||||
<style name="Widget.CustomPopup" parent="Widget.MaterialComponents.PopupMenu.ContextMenu">
|
||||
<item name="android:popupBackground">@drawable/ui_popup_bg</item>
|
||||
<item name="colorControlHighlight">?attr/colorControlHighlight</item>
|
||||
<item name="cornerRadius">0dp</item>
|
||||
</style>
|
||||
|
||||
@@ -15,46 +14,22 @@
|
||||
<item name="colorControlHighlight">@color/overlay_selection</item>
|
||||
</style>
|
||||
|
||||
<!-- Base custom dialog theme. Don't try to understand this. -->
|
||||
<style name="Theme.CustomDialog.Base" parent="ThemeOverlay.MaterialComponents.MaterialAlertDialog">
|
||||
<item name="android:colorControlHighlight">?attr/colorControlHighlight</item>
|
||||
<!-- Normal DayNight dialog theme -->
|
||||
<style name="Theme.CustomDialog" parent="ThemeOverlay.MaterialComponents.MaterialAlertDialog">
|
||||
<item name="android:checkedTextViewStyle">@style/Widget.CheckedTextView.Dialog</item>
|
||||
|
||||
<item name="colorControlHighlight">@color/overlay_selection</item>
|
||||
<item name="materialAlertDialogTitleTextStyle">@style/Widget.TextView.Dialog.Title</item>
|
||||
<item name="alertDialogStyle">@style/MaterialAlertDialog.App</item>
|
||||
|
||||
<item name="buttonBarPositiveButtonStyle">@style/Widget.Button.Dialog</item>
|
||||
<item name="buttonBarNegativeButtonStyle">@style/Widget.Button.Dialog</item>
|
||||
<item name="buttonBarNeutralButtonStyle">@style/Widget.Button.Dialog.Neutral</item>
|
||||
</style>
|
||||
|
||||
<!-- Normal DayNight dialog theme -->
|
||||
<style name="Theme.CustomDialog" parent="Theme.CustomDialog.Base">
|
||||
<item name="colorSurface">@color/surface</item>
|
||||
<item name="colorControlHighlight">@color/overlay_selection</item>
|
||||
</style>
|
||||
|
||||
<!-- Black theme dialog theme -->
|
||||
<style name="Theme.CustomDialog.Black" parent="Theme.CustomDialog.Base">
|
||||
<item name="colorSurface">@android:color/black</item>
|
||||
</style>
|
||||
|
||||
<!-- Material-specific dialog style -->
|
||||
<style name="MaterialAlertDialog.App" parent="MaterialAlertDialog.MaterialComponents">
|
||||
<item name="shapeAppearanceOverlay">@style/ShapeAppearance.Angular</item>
|
||||
</style>
|
||||
|
||||
<!-- Dialog shape with no rounded corners -->
|
||||
<style name="ShapeAppearance.Angular" parent="ShapeAppearance.MaterialComponents.MediumComponent">
|
||||
<item name="cornerFamily">cut</item>
|
||||
<item name="cornerRadius">0dp</item>
|
||||
</style>
|
||||
|
||||
<!-- Custom dialog title theme -->
|
||||
<style name="Widget.TextView.Dialog.Title" parent="MaterialAlertDialog.MaterialComponents.Title.Text">
|
||||
<item name="android:fontFamily">@font/inter_bold</item>
|
||||
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
||||
<item name="android:textSize">@dimen/text_size_large</item>
|
||||
<item name="android:paddingBottom">@dimen/spacing_medium</item>
|
||||
</style>
|
||||
|
||||
<!-- The style for the checked text view in the custom dialog -->
|
||||
@@ -71,7 +46,6 @@
|
||||
<item name="android:fontFamily">@font/inter_semibold</item>
|
||||
<item name="android:textColor">?attr/colorAccent</item>
|
||||
<item name="android:textAppearance">?android:attr/textAppearanceButton</item>
|
||||
<item name="rippleColor">?android:attr/colorControlHighlight</item>
|
||||
<item name="cornerRadius">0dp</item>
|
||||
</style>
|
||||
|
||||
|
||||
@@ -6,9 +6,14 @@
|
||||
<style name="Theme.Edge" parent="Theme.Master" />
|
||||
<!-- Android 12 Splashscreen config -->
|
||||
<style name="Theme.Splash" parent="Theme.Edge" />
|
||||
<!-- Dark-mode-specific stuff -->
|
||||
<style name="Theme.Overlay" parent="Theme.Splash">
|
||||
<!-- Light theme, don't use an elevation overlay. -->
|
||||
<item name="elevationOverlayColor">@android:color/transparent</item>
|
||||
</style>
|
||||
|
||||
<!-- Base theme -->
|
||||
<style name="Theme.Base" parent="Theme.Splash">
|
||||
<style name="Theme.Base" parent="Theme.Overlay">
|
||||
<!-- Colors -->
|
||||
<item name="colorSurface">@color/surface</item>
|
||||
<item name="colorAccent">@color/blue</item>
|
||||
@@ -44,7 +49,6 @@
|
||||
<!-- The basic black theme derived in all black accents. -->
|
||||
<style name="Theme.Base.Black" parent="Theme.Base">
|
||||
<item name="colorSurface">@android:color/black</item>
|
||||
<item name="materialAlertDialogTheme">@style/Theme.CustomDialog.Black</item>
|
||||
</style>
|
||||
|
||||
<!--
|
||||
|
||||
@@ -40,6 +40,13 @@
|
||||
<item name="android:splitTrack">false</item>
|
||||
<item name="android:thumbOffset">@dimen/offset_thumb</item>
|
||||
<item name="android:thumbTint">?attr/colorAccent</item>
|
||||
<item name="android:enabled">true</item>
|
||||
<item name="android:theme">@style/ThemeOverlay.SeekbarSelectionHack</item>
|
||||
</style>
|
||||
|
||||
<style name="ThemeOverlay.SeekbarSelectionHack" parent="">
|
||||
<!-- TODO: Remove this dumb hack and use a slider -->
|
||||
<item name="colorControlHighlight">@color/overlay_seekbar_halo</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.ImageView.Compact" parent="">
|
||||
@@ -200,10 +207,11 @@
|
||||
<style name="Widget.Button.Vibrant.Primary" parent="@style/Widget.MaterialComponents.Button.TextButton">
|
||||
<item name="android:layout_width">0dp</item>
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
<item name="android:letterSpacing">0.05</item>
|
||||
<item name="android:letterSpacing">0.01</item>
|
||||
<item name="android:textAllCaps">false</item>
|
||||
<item name="android:textSize">@dimen/text_size_small</item>
|
||||
<item name="android:textColor">?attr/colorSurface</item>
|
||||
<item name="rippleColor">@color/mtrl_btn_ripple_color</item>
|
||||
<item name="fontFamily">@font/inter_semibold</item>
|
||||
<item name="cornerRadius">0dp</item>
|
||||
</style>
|
||||
@@ -211,7 +219,7 @@
|
||||
<style name="Widget.Button.Vibrant.Secondary" parent="@style/Widget.MaterialComponents.Button.OutlinedButton">
|
||||
<item name="android:layout_width">0dp</item>
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
<item name="android:letterSpacing">0.05</item>
|
||||
<item name="android:letterSpacing">0.0125</item>
|
||||
<item name="android:textAllCaps">false</item>
|
||||
<item name="android:textSize">@dimen/text_size_small</item>
|
||||
<item name="fontFamily">@font/inter_semibold</item>
|
||||
|
||||
Reference in New Issue
Block a user