Appearance changes to NumberGridTimePickerDialog
This commit is contained in:
@@ -38,15 +38,13 @@
|
||||
<!-- Colors for red theme -->
|
||||
<color name="red">#ff3333</color>
|
||||
<color name="red_focused">#853333</color>
|
||||
<color name="light_gray">#404040</color>
|
||||
<color name="dark_gray">#363636</color>
|
||||
<color name="light_gray">#424242</color> <!--Grey 800. Originally #404040-->
|
||||
<color name="dark_gray">#212121</color> <!--Grey 900. Originally #363636-->
|
||||
<color name="line_dark">#808080</color>
|
||||
<color name="done_text_color_dark_normal">#ffffff</color>
|
||||
<color name="done_text_color_dark_disabled">#888888</color>
|
||||
<color name="done_disabled_dark">#bfbfbf</color>
|
||||
|
||||
<!-- My stuff -->
|
||||
<color name="accent_color">#009688</color>
|
||||
<color name="accent_color_focused">#76ffffff</color>
|
||||
<color name="accent_color_dark">#00796b</color>
|
||||
<!--My stuff-->
|
||||
<color name="unselected_color">#a2ffffff</color><!--63%-64% white-->
|
||||
</resources>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<resources>
|
||||
<color name="colorPrimary">#3F51B5</color>
|
||||
<color name="colorPrimaryDark">#303F9F</color>
|
||||
<color name="colorAccent">#FF4081</color>
|
||||
<color name="colorAccent">#FF4081</color> <!--Alternatives: Red 700 #D32F2F-->
|
||||
|
||||
<color name="black_overlay">#66000000</color>
|
||||
</resources>
|
||||
|
||||
@@ -20,10 +20,18 @@
|
||||
<dimen name="numpad_height">300dp</dimen> <!-- TODO: Deprecated -->
|
||||
<dimen name="numeric_keypad_cell_height">64dp</dimen>
|
||||
<dimen name="numeric_keypad_output_box_height">80dp</dimen>
|
||||
<dimen name="numeric_keypad_height">344dp</dimen> <!-- 4 x (numeric_keypad_cell_height) + 88dp pre-21 FAB height -->
|
||||
<dimen name="numeric_keypad_height">344dp</dimen> <!-- 4 * (numeric_keypad_cell_height) + 88dp pre-21 FAB height -->
|
||||
<dimen name="numeric_keypad_backspace_height">88dp</dimen> <!-- Same as pre-21 FAB height -->
|
||||
<dimen name="numeric_keypad_fab_bottom_margin">0dp</dimen> <!-- 88dp height already big enough -->
|
||||
|
||||
<!-- NumberGridTimePickerDialog -->
|
||||
<dimen name="number_grid_height">308dp</dimen> <!-- 5 * (number_grid_minute_cell_height) + half-FAB height bottom padding -->
|
||||
<dimen name="number_grid_hour_cell_height">70dp</dimen> <!-- 4 * 70 + 28 = 308 -->
|
||||
<dimen name="number_grid_minute_cell_height">56dp</dimen>
|
||||
<dimen name="half_day_button_bar_height">48dp</dimen>
|
||||
<dimen name="number_grid_24_hour_item_primary_text_size">30sp</dimen>
|
||||
<dimen name="number_grid_minute_text_size">28sp</dimen>
|
||||
|
||||
<!-- Bottom sheet specs -->
|
||||
<dimen name="bottom_sheet_edge_margin">24dp</dimen>
|
||||
<dimen name="bottom_sheet_vertical_space">16dp</dimen>
|
||||
|
||||
@@ -47,6 +47,24 @@
|
||||
<item name="android:fontFamily">sans-serif-light</item>
|
||||
</style>
|
||||
|
||||
<style name="NumberGridButton" parent="GridLayoutNumpadButton">
|
||||
<!-- This should give us 87% black. By default, TextView has a grayish text color.
|
||||
The reason GridLayoutNumpadButton style used in the NumpadTimerPickerDialog is 87% black
|
||||
already is because the numpad's buttons are actually of type Button. For whatever reason,
|
||||
I decided to make the buttons for the NumbersGrid of type TextView... -->
|
||||
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
||||
</style>
|
||||
<style name="NumberGridButton.Hour">
|
||||
<item name="android:layout_height">@dimen/number_grid_hour_cell_height</item>
|
||||
</style>
|
||||
<style name="NumberGridButton.Minute">
|
||||
<!-- Lowered text size, otherwise it looks weird that the minute grid, with 5 rows
|
||||
of buttons, has the same text size as the hours grid, with 4 rows of buttons; they look
|
||||
too big, and the space between them is smaller. -->
|
||||
<item name="android:textSize">@dimen/number_grid_minute_text_size</item>
|
||||
<item name="android:layout_height">@dimen/number_grid_minute_cell_height</item>
|
||||
</style>
|
||||
|
||||
<!-- TODO: Replace and Delete -->
|
||||
<style name="hybrid_time_picker_grid_element">
|
||||
<item name="android:layout_width">@dimen/grid_element_touch_target</item>
|
||||
|
||||
Reference in New Issue
Block a user