新增 夜间模式
This commit is contained in:
BIN
app/src/main/res/drawable-xhdpi/ic_night_mode.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/ic_night_mode.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.5 KiB |
@@ -23,6 +23,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:background="?attr/colorPrimary"
|
||||
android:theme="@style/ToolBarStyle"
|
||||
app:popupTheme="@style/AppTheme.PopupOverlay"
|
||||
app:title="@string/text_about"/>
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
|
||||
<com.stardust.theme.widget.ThemeColorToolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:theme="@style/ToolBarStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
@@ -37,7 +38,6 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="6dp"
|
||||
android:layout_marginRight="6dp"
|
||||
app:cardBackgroundColor="@android:color/white"
|
||||
app:cardCornerRadius="2dp"
|
||||
app:cardElevation="1dp"
|
||||
app:cardUseCompatPadding="true">
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:theme="@style/ToolBarStyle"
|
||||
android:background="?attr/colorPrimary"
|
||||
app:popupTheme="@style/AppTheme.PopupOverlay"/>
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
<com.stardust.theme.widget.ThemeColorToolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:theme="@style/ToolBarStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:background="?attr/colorPrimary"
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
<com.stardust.theme.widget.ThemeColorToolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:theme="@style/ToolBarStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:background="?attr/colorPrimary"
|
||||
@@ -30,7 +31,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
|
||||
<android.support.design.widget.FloatingActionButton
|
||||
<com.stardust.theme.widget.ThemeColorFloatingActionButton
|
||||
android:id="@+id/fab"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
<com.stardust.theme.widget.ThemeColorToolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:theme="@style/ToolBarStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:title="@string/text_login"
|
||||
@@ -40,7 +41,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/text_username"
|
||||
android:textColor="#dd000000"/>
|
||||
android:textColor="?android:textColorPrimary"/>
|
||||
|
||||
</android.support.design.widget.TextInputLayout>
|
||||
|
||||
@@ -56,7 +57,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/text_password"
|
||||
android:inputType="textPassword"
|
||||
android:textColor="#dd000000"/>
|
||||
android:textColor="?android:textColorPrimary"/>
|
||||
|
||||
</android.support.design.widget.TextInputLayout>
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:theme="@style/ToolBarStyle"
|
||||
android:title="@string/_app_name"
|
||||
app:layout_scrollFlags="scroll|enterAlways"
|
||||
app:popupTheme="@style/AppTheme.PopupOverlay"/>
|
||||
@@ -34,8 +35,10 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:tabGravity="fill"
|
||||
app:tabIndicatorColor="@android:color/white"
|
||||
app:tabMode="scrollable"/>
|
||||
app:tabIndicatorColor="@color/tab_indicator"
|
||||
app:tabMode="scrollable"
|
||||
app:tabSelectedTextColor="@color/tab_indicator"
|
||||
app:tabTextColor="@color/tab_text"/>
|
||||
</android.support.design.widget.AppBarLayout>
|
||||
|
||||
<android.support.v4.view.ViewPager
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
<com.stardust.theme.widget.ThemeColorToolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:theme="@style/ToolBarStyle"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
</android.support.design.widget.AppBarLayout>
|
||||
@@ -167,7 +168,6 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="6dp"
|
||||
android:layout_marginRight="6dp"
|
||||
app:cardBackgroundColor="@android:color/white"
|
||||
app:cardCornerRadius="2dp"
|
||||
app:cardElevation="1dp"
|
||||
app:cardUseCompatPadding="true">
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:theme="@style/ToolBarStyle"
|
||||
android:title="@string/text_login"
|
||||
app:layout_scrollFlags="scroll|enterAlways"
|
||||
app:popupTheme="@style/AppTheme.PopupOverlay"/>
|
||||
@@ -41,7 +42,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/text_email"
|
||||
android:inputType="textEmailAddress"
|
||||
android:textColor="#dd000000"/>
|
||||
android:textColor="?android:textColorPrimary"/>
|
||||
|
||||
</android.support.design.widget.TextInputLayout>
|
||||
|
||||
@@ -57,7 +58,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/text_username"
|
||||
android:textColor="#dd000000"/>
|
||||
android:textColor="?android:textColorPrimary"/>
|
||||
|
||||
</android.support.design.widget.TextInputLayout>
|
||||
|
||||
@@ -73,7 +74,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/text_password"
|
||||
android:inputType="textPassword"
|
||||
android:textColor="#dd000000"/>
|
||||
android:textColor="?android:textColorPrimary"/>
|
||||
|
||||
</android.support.design.widget.TextInputLayout>
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
|
||||
<com.stardust.theme.widget.ThemeColorToolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:theme="@style/ToolBarStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
app:popupTheme="@style/AppTheme.PopupOverlay"
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@android:color/white"
|
||||
android:fitsSystemWindows="true"
|
||||
android:orientation="vertical">
|
||||
|
||||
@@ -15,6 +14,7 @@
|
||||
|
||||
<com.stardust.theme.widget.ThemeColorToolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:theme="@style/ToolBarStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:background="?attr/colorPrimary"
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
<com.stardust.theme.widget.ThemeColorToolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:theme="@style/ToolBarStyle"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:title="@string/_app_name"
|
||||
app:layout_scrollFlags="scroll|enterAlways"
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
|
||||
<com.stardust.theme.widget.ThemeColorToolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:theme="@style/ToolBarStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
app:popupTheme="@style/AppTheme.PopupOverlay"
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
<com.stardust.theme.widget.ThemeColorToolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:theme="@style/ToolBarStyle"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:background="?attr/colorPrimary"
|
||||
app:popupTheme="@style/AppTheme.PopupOverlay"/>
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
<com.stardust.theme.widget.ThemeColorToolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:theme="@style/ToolBarStyle"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:background="?attr/colorPrimary"
|
||||
android:title="@string/_app_name"
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
|
||||
<com.stardust.theme.widget.ThemeColorToolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:theme="@style/ToolBarStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:title="@string/text_login"
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="#f0f1f5"
|
||||
android:background="?android:divider"
|
||||
android:paddingTop="@dimen/divider_drawer_menu_group">
|
||||
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="#ffffff"
|
||||
android:background="?android:windowBackground"
|
||||
android:padding="8dp"
|
||||
android:textColor="#999999"
|
||||
android:textColor="?drawer_group_text_color"
|
||||
android:textSize="12sp">
|
||||
|
||||
</TextView>
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toRightOf="@+id/icon_container"
|
||||
android:gravity="center_vertical"
|
||||
android:textColor="#484C4F"
|
||||
android:textColor="?drawer_item_text_color"
|
||||
android:textSize="14sp"
|
||||
tools:text="@string/text_auto_operate_service"/>
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:theme="@style/ToolBarStyle"
|
||||
android:background="?attr/colorPrimary"
|
||||
android:title="@string/_app_name"
|
||||
app:popupTheme="@style/AppTheme.PopupOverlay">
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="304dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@android:color/white"
|
||||
android:background="?android:windowBackground"
|
||||
android:clickable="true"
|
||||
android:fitsSystemWindows="false"
|
||||
android:importantForAccessibility="no"
|
||||
@@ -73,7 +72,7 @@
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="#f2f3f5"/>
|
||||
android:background="?android:divider"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
@@ -104,6 +103,7 @@
|
||||
android:layout_gravity="center_vertical"
|
||||
android:gravity="center"
|
||||
android:text="@string/text_setting"
|
||||
android:textColor="?android:textColorPrimary"
|
||||
android:textSize="15sp"/>
|
||||
</LinearLayout>
|
||||
|
||||
@@ -128,6 +128,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:textColor="?android:textColorPrimary"
|
||||
android:gravity="center"
|
||||
android:text="@string/text_exit"
|
||||
android:textSize="15sp"/>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="match_parent"
|
||||
app:icon="@drawable/ic_play_arrow_white_48dp"
|
||||
app:icon_color="@android:color/white"
|
||||
app:icon_color="@color/toolbar"
|
||||
app:text="@string/text_run"/>
|
||||
|
||||
<org.autojs.autojs.ui.widget.ToolbarMenuItem
|
||||
@@ -19,6 +19,7 @@
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="match_parent"
|
||||
app:icon="@drawable/ic_undo_white_48dp"
|
||||
app:icon_color="@color/toolbar"
|
||||
app:text="@string/text_undo"/>
|
||||
|
||||
<org.autojs.autojs.ui.widget.ToolbarMenuItem
|
||||
@@ -26,6 +27,7 @@
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="match_parent"
|
||||
app:icon="@drawable/ic_redo_white_48dp"
|
||||
app:icon_color="@color/toolbar"
|
||||
app:text="@string/text_redo"/>
|
||||
|
||||
<org.autojs.autojs.ui.widget.ToolbarMenuItem
|
||||
@@ -34,6 +36,7 @@
|
||||
android:layout_height="match_parent"
|
||||
android:enabled="false"
|
||||
app:icon="@drawable/ic_save_white_48dp"
|
||||
app:icon_color="@color/toolbar"
|
||||
app:text="@string/text_save"/>
|
||||
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="match_parent"
|
||||
app:icon="@drawable/ic_ali_replace"
|
||||
app:icon_color="@color/toolbar"
|
||||
app:text="@string/text_replace"/>
|
||||
|
||||
<org.autojs.autojs.ui.widget.ToolbarMenuItem
|
||||
@@ -18,6 +19,7 @@
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="match_parent"
|
||||
app:icon="@drawable/ic_ali_up"
|
||||
app:icon_color="@color/toolbar"
|
||||
app:text="@string/text_find_prev"/>
|
||||
|
||||
<org.autojs.autojs.ui.widget.ToolbarMenuItem
|
||||
@@ -25,6 +27,7 @@
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="match_parent"
|
||||
app:icon="@drawable/ic_ali_down"
|
||||
app:icon_color="@color/toolbar"
|
||||
app:text="@string/text_find_next"/>
|
||||
|
||||
|
||||
@@ -33,6 +36,7 @@
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="match_parent"
|
||||
app:icon="@drawable/ic_close_white_48dp"
|
||||
app:icon_color="@color/toolbar"
|
||||
app:text="@string/text_cancel"/>
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@android:color/white">
|
||||
android:layout_height="match_parent">
|
||||
|
||||
|
||||
<org.autojs.autojs.theme.widget.ThemeColorSwipeRefreshLayout
|
||||
|
||||
@@ -8,8 +8,9 @@
|
||||
android:layout_marginLeft="3dp"
|
||||
android:layout_marginRight="3dp"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:foreground="?selectableItemBackground"
|
||||
app:cardBackgroundColor="#ffffff"
|
||||
app:cardBackgroundColor="?android:itemBackground"
|
||||
app:cardElevation="0.618dp"
|
||||
app:cardUseCompatPadding="true">
|
||||
|
||||
@@ -17,8 +18,8 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal"
|
||||
android:paddingBottom="16dp"
|
||||
android:paddingTop="16dp">
|
||||
android:paddingTop="16dp"
|
||||
android:paddingBottom="16dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/icon"
|
||||
@@ -37,7 +38,7 @@
|
||||
android:gravity="center_vertical"
|
||||
android:maxLines="1"
|
||||
android:paddingRight="16dp"
|
||||
android:textColor="#484C4F"
|
||||
android:textColor="?android:textColorPrimary"
|
||||
android:textSize="14sp"
|
||||
tools:text="正在运行的服务"/>
|
||||
|
||||
@@ -49,6 +50,7 @@
|
||||
android:layout_gravity="center_vertical"
|
||||
android:background="?selectableItemBackgroundBorderless"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp"
|
||||
android:src="@drawable/ic_more_vert_black_24dp"
|
||||
|
||||
@@ -8,13 +8,13 @@
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1px"
|
||||
android:background="#EDEEEF"/>
|
||||
android:background="?android:divider"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/item"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@android:color/white"
|
||||
android:background="@color/item_background_dark"
|
||||
android:clickable="true"
|
||||
android:foreground="?selectableItemBackground"
|
||||
android:orientation="horizontal"
|
||||
@@ -47,7 +47,7 @@
|
||||
android:ellipsize="end"
|
||||
android:gravity="center_vertical"
|
||||
android:maxLines="1"
|
||||
android:textColor="#484C4F"
|
||||
android:textColor="?android:textColorPrimary"
|
||||
android:textSize="14sp"
|
||||
tools:text="正在运行的服务"/>
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
android:ellipsize="end"
|
||||
android:gravity="center_vertical"
|
||||
android:maxLines="1"
|
||||
android:textColor="#9DA0A2"
|
||||
android:textColor="?android:textColorSecondary"
|
||||
android:textSize="11sp"
|
||||
tools:text="18 KB"/>
|
||||
|
||||
@@ -112,7 +112,7 @@
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1px"
|
||||
android:background="#EDEEEF"/>
|
||||
android:background="?android:divider"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
16
app/src/main/res/values-night/colors.xml
Normal file
16
app/src/main/res/values-night/colors.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="window_background">#202020</color>
|
||||
<color name="item_background">#333333</color>
|
||||
<color name="item_background_dark">#252525</color>
|
||||
<color name="text_color_primary">#7F7F80</color>
|
||||
<color name="drawer_menu_item_text_color">#9a9a9a</color>
|
||||
<color name="drawer_menu_group_text_color">#808080</color>
|
||||
<color name="divider">#111214</color>
|
||||
<color name="text_color_secondary">#9a9a9a</color>
|
||||
<color name="text_color_thirdly">#808080</color>
|
||||
<color name="tab_indicator">#6D6D6E</color>
|
||||
<color name="tab_text">#3A3A3C</color>
|
||||
<color name="toolbar">#8D8D8E</color>
|
||||
<color name="toolbar_disabled">#3A3A3C</color>
|
||||
</resources>
|
||||
12
app/src/main/res/values-night/styles.xml
Normal file
12
app/src/main/res/values-night/styles.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="ToolBarStyle" parent="ThemeOverlay.AppCompat.Dark.ActionBar">
|
||||
<item name="android:textColorPrimary">@color/toolbar</item>
|
||||
<item name="android:textColorSecondary">@color/toolbar</item>
|
||||
<item name="actionMenuTextColor">@color/toolbar</item>
|
||||
</style>
|
||||
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar">
|
||||
<item name="android:textColorPrimary">@color/toolbar</item>
|
||||
<item name="actionMenuTextColor">@color/toolbar</item>
|
||||
</style>
|
||||
</resources>
|
||||
@@ -3,6 +3,9 @@
|
||||
|
||||
<attr name="title" format="string|reference"/>
|
||||
<attr name="icon" format="reference"/>
|
||||
<attr name="drawer_item_text_color" format="color|reference"/>
|
||||
<attr name="drawer_group_text_color" format="color|reference"/>
|
||||
<attr name="itemBackgroundDark" format="color|reference"/>
|
||||
|
||||
<declare-styleable name="ToolbarMenuItem">
|
||||
<attr name="text" format="string|reference"/>
|
||||
|
||||
@@ -12,4 +12,21 @@
|
||||
<color name="divider_functions_keyboard">#f0f0f0</color>
|
||||
<color name="color_red">#ef5350</color>
|
||||
<color name="project_toolbar_color">#777777</color>
|
||||
<color name="theme_color_black">#111214</color>
|
||||
|
||||
<color name="window_background">#FFFFFF</color>
|
||||
<color name="item_background">#FFFFFF</color>
|
||||
<color name="item_background_dark">#FFFFFF</color>
|
||||
<color name="text_color_primary">@android:color/primary_text_light</color>
|
||||
<color name="text_color_secondary">#484C4F</color>
|
||||
<color name="text_color_thirdly">#9DA0A2</color>
|
||||
<color name="divider">#f2f3f5</color>
|
||||
<color name="drawer_menu_item_text_color">#484C4F</color>
|
||||
<color name="drawer_menu_group_text_color">#999999</color>
|
||||
<color name="tab_indicator">@android:color/white</color>
|
||||
<color name="tab_text">#a0ffffff</color>
|
||||
<color name="toolbar">@android:color/white</color>
|
||||
<color name="toolbar_disabled">#77e0e0e0</color>
|
||||
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -426,4 +426,6 @@
|
||||
<string name="error_cannot_rename">重命名失败</string>
|
||||
<string name="text_project_save_success">项目已经保存到%s</string>
|
||||
<string name="text_project_save_error">项目保存失败 %s</string>
|
||||
<string name="text_night_mode">夜间模式</string>
|
||||
<string name="key_night_mode">key_night_mode</string>
|
||||
</resources>
|
||||
|
||||
@@ -1,10 +1,24 @@
|
||||
<resources>
|
||||
|
||||
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
||||
|
||||
<style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
|
||||
<item name="colorPrimary">@color/colorPrimary</item>
|
||||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||
<item name="colorAccent">@color/colorAccent</item>
|
||||
<item name="android:textColorPrimary">@color/text_color_secondary</item>
|
||||
<item name="android:textColorSecondary">@color/text_color_thirdly</item>
|
||||
<item name="android:windowBackground">@color/window_background</item>
|
||||
<item name="android:itemBackground">@color/item_background</item>
|
||||
<item name="itemBackgroundDark">@color/item_background_dark</item>
|
||||
<item name="android:divider">@color/divider</item>
|
||||
<item name="drawer_item_text_color">@color/drawer_menu_item_text_color</item>
|
||||
<item name="drawer_group_text_color">@color/drawer_menu_group_text_color</item>
|
||||
</style>
|
||||
|
||||
<style name="ToolBarStyle" parent="ThemeOverlay.AppCompat.ActionBar">
|
||||
<item name="android:textColorPrimary">@color/toolbar</item>
|
||||
<item name="android:textColorSecondary">@color/toolbar</item>
|
||||
<item name="actionMenuTextColor">@color/toolbar</item>
|
||||
</style>
|
||||
|
||||
<style name="EditorTheme" parent="AppTheme">
|
||||
@@ -13,15 +27,12 @@
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.FullScreen" parent="AppTheme">
|
||||
<!-- Customize your theme here. -->
|
||||
<item name="windowNoTitle">true</item>
|
||||
|
||||
<item name="windowActionBar">false</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.Splash" parent="@android:style/Theme.Light.NoTitleBar.Fullscreen">
|
||||
<item name="windowNoTitle">true</item>
|
||||
|
||||
<item name="windowActionBar">false</item>
|
||||
</style>
|
||||
|
||||
@@ -42,7 +53,6 @@
|
||||
<item name="android:backgroundDimEnabled">false</item>
|
||||
</style>
|
||||
|
||||
|
||||
<style name="IssueReporterTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
||||
<item name="colorPrimary">@color/colorPrimary</item>
|
||||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||
@@ -57,5 +67,4 @@
|
||||
|
||||
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar"/>
|
||||
|
||||
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user