优化 夜间模式的显示

This commit is contained in:
hyb1996
2018-11-11 18:15:49 +08:00
parent 385f9a4336
commit e15d5a2f07
16 changed files with 62 additions and 71 deletions

View File

@@ -13,10 +13,10 @@
<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"
android:theme="@style/ToolBarStyle"
app:popupTheme="@style/AppTheme.PopupOverlay"/>
</android.support.design.widget.AppBarLayout>
@@ -29,7 +29,9 @@
<com.stardust.autojs.core.console.ConsoleView
android:id="@+id/console"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
android:layout_height="match_parent"
app:color_debug="@color/console_debug"
app:color_verbose="@color/console_verbose"/>
<com.stardust.theme.widget.ThemeColorFloatingActionButton
android:id="@+id/fab"

View File

@@ -26,7 +26,6 @@
<android.support.v7.widget.RecyclerView
android:id="@+id/apps"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white"/>
android:layout_height="match_parent"/>
</LinearLayout>

View File

@@ -37,7 +37,6 @@
android:layout_marginLeft="6dp"
android:layout_marginRight="6dp"
android:layout_marginTop="12dp"
app:cardBackgroundColor="@android:color/white"
app:cardCornerRadius="2dp"
app:cardElevation="1dp"
app:cardUseCompatPadding="true">
@@ -125,7 +124,7 @@
android:layout_height="36dp"
android:layout_marginLeft="12dp"
android:gravity="center_vertical"
android:textColor="#202020"
android:textColor="?android:textColorPrimary"
android:textSize="16sp"/>
</LinearLayout>
@@ -154,7 +153,7 @@
android:layout_height="36dp"
android:layout_marginLeft="12dp"
android:gravity="center_vertical"
android:textColor="#202020"
android:textColor="?android:textColorPrimary"
android:textSize="16sp"/>
</LinearLayout>

View File

@@ -13,4 +13,7 @@
<color name="tab_text">#3A3A3C</color>
<color name="toolbar">#8D8D8E</color>
<color name="toolbar_disabled">#3A3A3C</color>
<color name="console_debug">#dfc0c0c0</color>
<color name="console_verbose">#7F7F80</color>
</resources>

View File

@@ -6,7 +6,5 @@
<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>

View File

@@ -27,6 +27,9 @@
<color name="tab_text">#a0ffffff</color>
<color name="toolbar">@android:color/white</color>
<color name="toolbar_disabled">#77e0e0e0</color>
<color name="console_debug">#cc000000</color>
<color name="console_verbose">#dfc0c0c0</color>
</resources>

View File

@@ -63,8 +63,11 @@
</style>
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar"/>
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.ActionBar"/>
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar"/>
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.ActionBar">
<item name="android:textColorPrimary">#212121</item>
<item name="android:textColorSecondary">@color/colorAccent</item>
</style>
</resources>

View File

@@ -7,7 +7,6 @@
android:title="@string/text_script_record"
android:widgetLayout="@layout/preference_custom">
<com.stardust.theme.preference.ThemeColorSwitchPreference
android:defaultValue="false"
android:key="@string/key_use_volume_control_record"
@@ -90,27 +89,6 @@
/>
</com.stardust.theme.preference.ThemeColorPreferenceCategory>
<com.stardust.theme.preference.ThemeColorPreferenceCategory
android:layout="@layout/preference_category_custom"
android:title="@string/text_ad">
<com.afollestad.materialdialogs.prefs.MaterialListPreference
android:defaultValue="0"
android:entries="@array/ad_types_keys"
android:entryValues="@array/ad_types_values"
android:key="@string/key_ad_type"
android:layout="@layout/preference_custom"
android:title="@string/text_ad_type_settings"
/>
<com.afollestad.materialdialogs.prefs.MaterialListPreference
android:defaultValue="@string/text_default"
android:entries="@array/ad_showing_mode_keys"
android:entryValues="@array/ad_showing_mode_values"
android:key="@string/key_ad_showing_mode"
android:layout="@layout/preference_custom"
android:title="@string/text_ad_showing_settings"
/>
</com.stardust.theme.preference.ThemeColorPreferenceCategory>
<com.stardust.theme.preference.ThemeColorPreferenceCategory
android:layout="@layout/preference_category_custom"
android:title="@string/text_others">
@@ -124,14 +102,14 @@
/>
<org.autojs.autojs.ui.settings.ScriptDirPathPreference
android:defaultValue="@string/default_value_script_dir_path"
android:entries="@array/keys_documentation_source"
android:entryValues="@array/values_documentation_source"
android:key="@string/key_script_dir_path"
android:defaultValue="@string/default_value_script_dir_path"
android:layout="@layout/preference_custom"
android:title="@string/text_change_script_dir"
/>
android:
android:
</com.stardust.theme.preference.ThemeColorPreferenceCategory>
<com.stardust.theme.preference.ThemeColorPreferenceCategory