1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-26 02:25:50 +01:00

Some theme cleanups and preparations for a dark theme

This commit is contained in:
Andreas Shimokawa 2015-08-07 11:49:25 +02:00
parent 9004a8b0c1
commit ce7b42d9d4
4 changed files with 19 additions and 15 deletions

View File

@ -28,7 +28,6 @@
android:layout_alignStart="@+id/statuswrapper"
android:layout_toStartOf="@+id/device_info"
android:singleLine="true"
android:textColor="@color/primarytext"
android:typeface="sans" />
<ProgressBar
@ -51,7 +50,6 @@
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:gravity="start"
android:textColor="@color/primarytext"
android:textStyle="bold" />
<TextView

View File

@ -1,8 +1,15 @@
<resources>
<style name="GadgetbridgeTheme" parent="@android:style/Theme.Material.Light.DarkActionBar">
<item name="android:colorPrimary">@color/primary</item>
<item name="android:colorPrimaryDark">@color/primarydark</item>
<item name="android:colorPrimary">@color/primary_light</item>
<item name="android:colorPrimaryDark">@color/primarydark_light</item>
<item name="android:colorAccent">@color/accent</item>
<item name="android:textColor">@color/primary_text_default_material_light</item>
</style>
<style name="GadgetbridgeThemeDark" parent="@android:style/Theme.Material">
<item name="android:colorPrimary">@color/primary_dark</item>
<item name="android:colorPrimaryDark">@color/primarydark_dark</item>
<item name="android:colorAccent">@color/accent</item>
<item name="android:textColor">@color/primary_text_default_material_dark</item>
</style>
</resources>

View File

@ -1,14 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="primary_light" type="color">#ffff5000</color>
<color name="primarydark_light" type="color">#f0f03000</color>
<color name="primary_dark" type="color">#fff03000</color>
<color name="primarydark_dark" type="color">#f0f03000</color>
<color name="primary" type="color">#ffff5000</color>
<color name="primarydark" type="color">#f0f03000</color>
<color name="accent">#ff0091ea</color>
<color name="primarytext" type="color">#de000000</color>
<color name="secondarytext" type="color">#8a000000</color>
<color name="ondarktext" type="color">#fffafafa</color>
<color name="primarybackground" type="color">#fffafafa</color>
<color name="secondarybackground" type="color">#ffeeeeee</color>
<color name="darkbackground" type="color">#ff323232</color>
<color name="primarytext" type="color">#ff000000</color>
<color name="secondarytext" type="color">#ff808080</color>
<color name="divider">#1f000000</color>
</resources>

View File

@ -3,12 +3,12 @@
<style name="GadgetbridgeTheme" parent="@android:style/Theme.Holo.Light.DarkActionBar">
<item name="android:actionBarStyle">@style/GadgetbridgeActionBar</item>
<item name="android:actionBarWidgetTheme">@style/GadgetbridgeActionBarWidget</item>
<item name="android:textColor">@color/primarytext</item>
</style>
<style name="GadgetbridgeActionBar" parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse">
<item name="android:background">@color/primary</item>
<item name="android:backgroundStacked">@color/primarydark</item>
<item name="android:background">@color/primary_light</item>
<item name="android:backgroundStacked">@color/primarydark_light</item>
<item name="android:displayOptions">showHome|showTitle</item>
<item name="android:icon">@android:color/transparent</item>
</style>