2016-03-12 21:22:40 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<resources>
|
|
|
|
|
|
|
|
<!--========-->
|
|
|
|
<!--Toolbars-->
|
|
|
|
<!--========-->
|
2020-03-16 04:52:27 +08:00
|
|
|
<style name="Theme.Toolbar" parent="@style/ThemeOverlay.MaterialComponents.ActionBar" />
|
2015-09-24 23:27:43 +08:00
|
|
|
|
2020-03-16 04:52:27 +08:00
|
|
|
<style name="Theme.Toolbar.Light" parent="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar">
|
2020-03-12 07:08:57 +08:00
|
|
|
<item name="popupTheme">@style/ThemeOverlay.MaterialComponents.Light</item>
|
2016-05-13 21:45:36 +08:00
|
|
|
</style>
|
|
|
|
|
2020-03-16 04:52:27 +08:00
|
|
|
<style name="Theme.Toolbar.Navigation" parent="Widget.AppCompat.Toolbar.Button.Navigation">
|
|
|
|
<item name="tint">?attr/colorOnPrimary</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
2016-04-10 23:34:10 +08:00
|
|
|
<!--===========-->
|
|
|
|
<!--AlertDialog-->
|
|
|
|
<!--===========-->
|
2020-03-12 07:08:57 +08:00
|
|
|
<style name="Theme.AlertDialog" parent="ThemeOverlay.MaterialComponents.MaterialAlertDialog">
|
2016-04-10 23:34:10 +08:00
|
|
|
<item name="android:windowMinWidthMajor">@android:dimen/dialog_min_width_major</item>
|
|
|
|
<item name="android:windowMinWidthMinor">@android:dimen/dialog_min_width_minor</item>
|
2020-03-12 07:08:57 +08:00
|
|
|
|
|
|
|
<item name="android:background">?attr/colorSurface</item>
|
|
|
|
<item name="android:textColorPrimary">?attr/colorOnSurface</item>
|
|
|
|
<item name="android:textColor">?attr/colorOnSurface</item>
|
|
|
|
|
|
|
|
<item name="buttonBarPositiveButtonStyle">@style/Theme.Widget.Button</item>
|
2020-03-23 06:43:16 +08:00
|
|
|
<item name="buttonBarNegativeButtonStyle">@style/Theme.Widget.Button</item>
|
|
|
|
<item name="buttonBarNeutralButtonStyle">@style/Theme.Widget.Button</item>
|
2016-04-10 23:34:10 +08:00
|
|
|
</style>
|
|
|
|
|
2020-03-12 07:08:57 +08:00
|
|
|
<style name="Theme.AlertDialog.Light" parent="Theme.AlertDialog">
|
|
|
|
<item name="colorAccent">@color/colorAccentLight</item>
|
2016-04-10 23:34:10 +08:00
|
|
|
</style>
|
|
|
|
|
2020-03-12 07:08:57 +08:00
|
|
|
<style name="Theme.AlertDialog.Dark" parent="Theme.AlertDialog">
|
|
|
|
<item name="colorAccent">@color/colorAccentDark</item>
|
2020-01-21 10:34:47 +08:00
|
|
|
</style>
|
|
|
|
|
2016-03-12 21:22:40 +08:00
|
|
|
|
|
|
|
<!--===============-->
|
|
|
|
<!--Text Appearance-->
|
|
|
|
<!--===============-->
|
|
|
|
<style name="TextAppearance" parent="@android:style/TextAppearance">
|
|
|
|
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="TextAppearance.Regular">
|
2020-01-08 07:46:31 +08:00
|
|
|
<item name="android:fontFamily">sans-serif-regular</item>
|
2016-03-12 21:22:40 +08:00
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="TextAppearance.Regular.Body1">
|
|
|
|
<item name="android:textSize">14sp</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="TextAppearance.Regular.Body1.Bold">
|
|
|
|
<item name="android:textStyle">bold</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="TextAppearance.Regular.Body1.Secondary">
|
|
|
|
<item name="android:textColor">?android:attr/textColorSecondary</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="TextAppearance.Regular.Caption">
|
|
|
|
<item name="android:textSize">12sp</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="TextAppearance.Regular.Caption.Hint">
|
2020-04-19 23:13:04 +08:00
|
|
|
<item name="android:textColor">@color/material_on_surface_emphasis_medium</item>
|
2016-01-05 20:54:00 +08:00
|
|
|
</style>
|
|
|
|
|
2016-03-12 21:22:40 +08:00
|
|
|
<style name="TextAppearance.Regular.SubHeading">
|
|
|
|
<item name="android:textSize">16sp</item>
|
2016-01-05 20:54:00 +08:00
|
|
|
</style>
|
|
|
|
|
2017-09-23 19:11:39 +08:00
|
|
|
<style name="TextAppearance.Regular.SubHeading.Upper">
|
|
|
|
<item name="android:textAllCaps">true</item>
|
|
|
|
</style>
|
|
|
|
|
2016-09-22 03:26:08 +08:00
|
|
|
<style name="TextAppearance.Regular.SubHeading.Secondary">
|
|
|
|
<item name="android:textColor">?android:attr/textColorSecondary</item>
|
|
|
|
</style>
|
|
|
|
|
2016-03-12 21:22:40 +08:00
|
|
|
<style name="TextAppearance.Medium">
|
2020-01-08 07:46:31 +08:00
|
|
|
<item name="android:fontFamily">sans-serif-medium</item>
|
2016-03-12 21:22:40 +08:00
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="TextAppearance.Medium.Title">
|
|
|
|
<item name="android:textSize">20sp</item>
|
|
|
|
</style>
|
|
|
|
|
2017-09-23 19:11:39 +08:00
|
|
|
<style name="TextAppearance.Medium.Title.Upper">
|
|
|
|
<item name="android:textAllCaps">true</item>
|
|
|
|
</style>
|
|
|
|
|
2016-09-22 03:26:08 +08:00
|
|
|
<style name="TextAppearance.Medium.Title.Secondary">
|
|
|
|
<item name="android:textColor">?android:attr/textColorSecondary</item>
|
|
|
|
</style>
|
|
|
|
|
2016-03-12 21:22:40 +08:00
|
|
|
<style name="TextAppearance.Medium.Body2">
|
|
|
|
<item name="android:textSize">14sp</item>
|
2015-09-24 23:27:43 +08:00
|
|
|
</style>
|
|
|
|
|
2016-03-12 21:22:40 +08:00
|
|
|
<style name="TextAppearance.Medium.Body2.Hint">
|
|
|
|
<item name="android:textColor">?android:attr/textColorHint</item>
|
|
|
|
</style>
|
|
|
|
|
2020-03-13 07:14:43 +08:00
|
|
|
<style name="TextAppearance.Widget.Button" parent="TextAppearance.MaterialComponents.Button">
|
|
|
|
<item name="android:letterSpacing">0</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="TextAppearance.Widget.Menu" parent="TextAppearance.AppCompat.Menu">
|
|
|
|
<item name="android:textColor">?attr/colorOnBackground</item>
|
|
|
|
</style>
|
|
|
|
|
2016-03-12 21:22:40 +08:00
|
|
|
<!--=======-->
|
|
|
|
<!--Widgets-->
|
|
|
|
<!--=======-->
|
2017-09-23 19:11:39 +08:00
|
|
|
<style name="Theme.Widget" />
|
2016-03-12 21:22:40 +08:00
|
|
|
|
2020-03-12 07:08:57 +08:00
|
|
|
<style name="Theme.Widget.FAB" parent="@style/Widget.MaterialComponents.FloatingActionButton">
|
2019-12-28 09:53:04 +08:00
|
|
|
<item name="android:layout_height">wrap_content</item>
|
|
|
|
<item name="android:layout_width">wrap_content</item>
|
|
|
|
<item name="fabCustomSize">@dimen/fab_size</item>
|
2016-03-12 21:22:40 +08:00
|
|
|
<item name="android:layout_gravity">bottom|end</item>
|
|
|
|
<item name="android:layout_margin">@dimen/fab_margin</item>
|
|
|
|
<item name="android:scaleType">fitCenter</item>
|
|
|
|
<item name="layout_anchorGravity">bottom|right|end</item>
|
|
|
|
</style>
|
|
|
|
|
2016-06-08 02:59:43 +08:00
|
|
|
<style name="Theme.Widget.CardView" parent="CardView">
|
2016-06-08 02:14:36 +08:00
|
|
|
<item name="android:layout_width">match_parent</item>
|
|
|
|
<item name="android:layout_height">wrap_content</item>
|
2017-05-16 16:18:46 +08:00
|
|
|
<item name="android:padding">@dimen/material_component_cards_top_and_bottom_padding</item>
|
2017-09-23 19:11:39 +08:00
|
|
|
<item name="android:layout_marginTop">@dimen/material_component_cards_space_between_cards
|
|
|
|
</item>
|
|
|
|
<item name="android:layout_marginBottom">
|
|
|
|
@dimen/material_component_cards_space_between_cards
|
|
|
|
</item>
|
|
|
|
<item name="android:layout_marginStart">
|
|
|
|
@dimen/material_component_cards_space_between_cards
|
|
|
|
</item>
|
|
|
|
<item name="android:layout_marginEnd">@dimen/material_component_cards_space_between_cards
|
|
|
|
</item>
|
2020-03-12 07:08:57 +08:00
|
|
|
<item name="cardBackgroundColor">?attr/colorSurface</item>
|
2020-04-19 02:18:51 +08:00
|
|
|
<item name="cardCornerRadius">@dimen/card_radius</item>
|
2017-05-16 16:18:46 +08:00
|
|
|
<item name="cardElevation">2dp</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="Theme.Widget.CardView.Item">
|
|
|
|
<item name="android:layout_marginTop">@dimen/space_between_cards</item>
|
|
|
|
<item name="android:layout_marginBottom">@dimen/space_between_cards</item>
|
2016-06-06 21:26:56 +08:00
|
|
|
</style>
|
|
|
|
|
2016-03-12 21:22:40 +08:00
|
|
|
<style name="Theme.Widget.GridView">
|
2017-09-23 19:11:39 +08:00
|
|
|
<item name="android:smoothScrollbar">true</item>
|
|
|
|
<item name="android:numColumns">auto_fit</item>
|
|
|
|
<item name="android:stretchMode">columnWidth</item>
|
|
|
|
<item name="android:scrollbarStyle">outsideOverlay</item>
|
|
|
|
</style>
|
|
|
|
|
2020-04-13 00:21:47 +08:00
|
|
|
<style name="Theme.Widget.GridView.Source">
|
2016-01-10 01:23:38 +08:00
|
|
|
<item name="android:padding">5dp</item>
|
2015-11-25 01:45:53 +08:00
|
|
|
<item name="android:gravity">top|left</item>
|
|
|
|
<item name="android:smoothScrollbar">true</item>
|
2016-03-12 21:22:40 +08:00
|
|
|
<item name="android:cacheColorHint">?android:attr/textColorHint</item>
|
2015-11-25 01:45:53 +08:00
|
|
|
<item name="android:fastScrollEnabled">true</item>
|
|
|
|
<item name="android:horizontalSpacing">0dp</item>
|
|
|
|
<item name="android:verticalSpacing">0dp</item>
|
2015-09-24 23:27:43 +08:00
|
|
|
</style>
|
|
|
|
|
2015-12-09 02:39:57 +08:00
|
|
|
|
2016-05-25 06:09:24 +08:00
|
|
|
<style name="Theme.Widget.SpinnerItem" parent="Widget.AppCompat.DropDownItem.Spinner">
|
2020-03-12 07:08:57 +08:00
|
|
|
<item name="android:textColor">?attr/colorOnSurface</item>
|
|
|
|
<item name="android:background">@drawable/list_item_selector</item>
|
2016-05-25 06:09:24 +08:00
|
|
|
</style>
|
|
|
|
|
2020-03-13 08:12:48 +08:00
|
|
|
|
|
|
|
<style name="Theme.Widget.Snackbar" parent="Widget.MaterialComponents.Snackbar">
|
|
|
|
<item name="android:background">@drawable/snackbar_bg</item>
|
2020-04-06 01:55:42 +08:00
|
|
|
<item name="android:textAppearance">@style/TextAppearance.Widget.Menu</item>
|
|
|
|
<item name="actionTextColorAlpha">1</item>
|
2020-03-13 08:12:48 +08:00
|
|
|
</style>
|
|
|
|
|
2020-03-16 00:58:48 +08:00
|
|
|
|
2020-03-30 01:58:30 +08:00
|
|
|
<style name="Theme.Widget.Chip" parent="Widget.MaterialComponents.Chip.Action">
|
|
|
|
<item name="chipStrokeWidth">1dp</item>
|
|
|
|
<item name="chipStrokeColor">?attr/colorAccent</item>
|
|
|
|
<item name="chipBackgroundColor">@android:color/transparent</item>
|
|
|
|
<item name="android:textColor">?attr/colorAccent</item>
|
|
|
|
|
|
|
|
<!-- Smaller text/height -->
|
|
|
|
<item name="chipCornerRadius">12dp</item>
|
|
|
|
<item name="chipMinHeight">24dp</item>
|
|
|
|
<item name="android:textAppearance">@style/TextAppearance.Regular.Caption</item>
|
|
|
|
|
|
|
|
<!-- Collapse horizontal margin -->
|
|
|
|
<item name="chipMinTouchTargetSize">30dp</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
2020-04-11 23:29:55 +08:00
|
|
|
<style name="Theme.Widget.BasicSwitch" parent="Widget.MaterialComponents.CompoundButton.Switch">
|
|
|
|
<item name="useMaterialThemeColors">false</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
2020-03-16 00:58:48 +08:00
|
|
|
<!--=======================-->
|
|
|
|
<!--Widgets.TextInputLayout-->
|
|
|
|
<!--=======================-->
|
|
|
|
|
2020-04-10 22:43:39 +08:00
|
|
|
<style name="ThemeOverlay.Widget.TextInputEditText.OutlinedBox" parent="ThemeOverlay.MaterialComponents.TextInputEditText.OutlinedBox">
|
|
|
|
<item name="colorControlActivated">?attr/colorSecondary</item>
|
|
|
|
</style>
|
|
|
|
|
2020-03-16 00:58:48 +08:00
|
|
|
<style name="Theme.Widget.TextInputLayout.OutlinedBox" parent="Widget.MaterialComponents.TextInputLayout.OutlinedBox">
|
2020-04-10 22:43:39 +08:00
|
|
|
<item name="materialThemeOverlay">@style/ThemeOverlay.Widget.TextInputEditText.OutlinedBox</item>
|
2020-03-16 00:58:48 +08:00
|
|
|
<item name="boxStrokeColor">@color/text_input_stroke</item>
|
2020-03-16 05:31:36 +08:00
|
|
|
<item name="hintTextColor">?attr/colorSecondary</item>
|
2020-03-16 00:58:48 +08:00
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="Theme.Widget.TextInputLayout.OutlinedBox.Dense" parent="Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense">
|
2020-04-11 03:15:31 +08:00
|
|
|
<item name="materialThemeOverlay">@style/ThemeOverlay.Widget.TextInputEditText.OutlinedBox</item>
|
2020-03-16 00:58:48 +08:00
|
|
|
<item name="boxStrokeColor">@color/text_input_stroke</item>
|
2020-03-16 05:31:36 +08:00
|
|
|
<item name="hintTextColor">?attr/colorSecondary</item>
|
2020-03-16 00:58:48 +08:00
|
|
|
</style>
|
|
|
|
|
|
|
|
|
2017-09-29 14:34:13 +08:00
|
|
|
<!--==============-->
|
|
|
|
<!--Widgets.Button-->
|
|
|
|
<!--==============-->
|
2020-03-12 07:08:57 +08:00
|
|
|
<style name="Theme.Widget.Button" parent="Widget.MaterialComponents.Button.TextButton">
|
2020-03-23 06:43:16 +08:00
|
|
|
<item name="android:textColor">?attr/colorAccent</item>
|
|
|
|
<item name="rippleColor">?attr/colorAccent</item>
|
2020-03-12 07:08:57 +08:00
|
|
|
</style>
|
2017-09-29 14:34:13 +08:00
|
|
|
|
2020-03-23 06:43:16 +08:00
|
|
|
<style name="Theme.Widget.Button.Error" parent="Theme.Widget.Button">
|
|
|
|
<item name="android:textColor">?attr/colorError</item>
|
|
|
|
<item name="rippleColor">?attr/colorError</item>
|
2017-09-29 14:34:13 +08:00
|
|
|
</style>
|
|
|
|
|
2020-03-23 06:43:16 +08:00
|
|
|
<style name="Theme.Widget.Button.FilledAccent" parent="Widget.MaterialComponents.Button">
|
|
|
|
<item name="android:textColor">?attr/colorOnSecondary</item>
|
|
|
|
<item name="backgroundTint">?attr/colorAccent</item>
|
|
|
|
<item name="rippleColor">?attr/colorAccent</item>
|
2017-09-29 14:34:13 +08:00
|
|
|
</style>
|
|
|
|
|
2020-03-23 06:43:16 +08:00
|
|
|
<style name="Theme.Widget.Button.Outlined.Accent" parent="Widget.MaterialComponents.Button.OutlinedButton">
|
|
|
|
<item name="android:textColor">?attr/colorAccent</item>
|
|
|
|
<item name="rippleColor">?attr/colorAccent</item>
|
2017-09-29 14:34:13 +08:00
|
|
|
</style>
|
|
|
|
|
2020-04-04 10:41:37 +08:00
|
|
|
<style name="Theme.Widget.Button.Icon" parent="Widget.MaterialComponents.Button.OutlinedButton.Icon">
|
|
|
|
<item name="android:minHeight">0dp</item>
|
|
|
|
<item name="android:paddingBottom">4dp</item>
|
|
|
|
|
|
|
|
<item name="elevation">0dp</item>
|
|
|
|
|
|
|
|
<item name="android:textSize">12sp</item>
|
|
|
|
<item name="textAllCaps">false</item>
|
|
|
|
<item name="cornerRadius">16dp</item>
|
|
|
|
|
|
|
|
<item name="iconTint">?colorAccent</item>
|
|
|
|
<item name="rippleColor">?colorAccent</item>
|
|
|
|
<item name="android:textColor">?attr/colorOnBackground</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="Theme.Widget.Button.Icon.Textless">
|
|
|
|
<item name="android:minWidth">0dp</item>
|
|
|
|
<item name="android:paddingLeft">8dp</item>
|
|
|
|
<item name="android:paddingRight">8dp</item>
|
|
|
|
<item name="android:paddingStart">8dp</item>
|
|
|
|
<item name="android:paddingEnd">8dp</item>
|
|
|
|
<item name="iconPadding">0dp</item>
|
2020-04-19 07:05:19 +08:00
|
|
|
<item name="strokeWidth">0dp</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
<!--=================-->
|
|
|
|
<!--Widgets.TabLayout-->
|
|
|
|
<!--=================-->
|
|
|
|
<style name="Theme.Widget.Tabs" parent="Widget.MaterialComponents.TabLayout.Colored">
|
|
|
|
<item name="tabGravity">center</item>
|
|
|
|
<item name="tabIndicator">@drawable/tab_indicator</item>
|
|
|
|
<item name="tabIndicatorFullWidth">false</item>
|
|
|
|
<item name="tabIndicatorHeight">3dp</item>
|
|
|
|
<item name="tabInlineLabel">true</item>
|
|
|
|
<item name="tabMinWidth">75dp</item>
|
|
|
|
<item name="tabMode">scrollable</item>
|
2020-04-04 10:41:37 +08:00
|
|
|
</style>
|
|
|
|
|
2020-03-13 08:12:48 +08:00
|
|
|
|
2016-03-12 21:22:40 +08:00
|
|
|
<!--===-->
|
|
|
|
<!--OLD-->
|
|
|
|
<!--===-->
|
|
|
|
<style name="FilePickerTheme" parent="NNF_BaseTheme.Light">
|
2016-03-21 04:50:48 +08:00
|
|
|
<item name="colorPrimary">@color/colorPrimary</item>
|
2020-04-18 06:32:27 +08:00
|
|
|
<item name="colorPrimaryDark">@color/colorPrimary</item>
|
2016-04-10 21:48:57 +08:00
|
|
|
<item name="colorAccent">@color/colorAccentLight</item>
|
2016-03-21 04:50:48 +08:00
|
|
|
<item name="colorButtonNormal">@color/colorPrimary</item>
|
2016-03-12 21:22:40 +08:00
|
|
|
<item name="android:textSize">14sp</item>
|
|
|
|
|
|
|
|
<item name="alertDialogTheme">@style/FilePickerAlertDialogTheme</item>
|
|
|
|
|
2016-03-21 04:50:48 +08:00
|
|
|
<item name="nnf_toolbarTheme">@style/ThemeOverlay.AppCompat.Dark.ActionBar</item>
|
2016-03-12 21:22:40 +08:00
|
|
|
</style>
|
|
|
|
|
2020-03-12 07:08:57 +08:00
|
|
|
<style name="FilePickerAlertDialogTheme" parent="Theme.MaterialComponents.Light.Dialog.Alert" />
|
2015-11-25 01:45:53 +08:00
|
|
|
|
2015-09-24 23:27:43 +08:00
|
|
|
</resources>
|