diff --git a/generate-themes.pl b/generate-themes.pl index 5b98b60c..27d338e2 100644 --- a/generate-themes.pl +++ b/generate-themes.pl @@ -15,6 +15,7 @@ my $THEMES = [ { name=>"blue_dark", id=>7, dark=>1, colorAccent => '#FF03A9F4', colorPrimary => '#FF0277BD', colorPrimaryDark => '#FF01579B', controlsNormal=>'@color/material_grey_300', _bg => '#ff2a2a2a' }, { name=>"red_light", id=>8, dark=>0, colorAccent => '#ffd50000', colorPrimary => '#ffc62828', colorPrimaryDark => '#ffb71c1c', controlsNormal=>'@color/material_grey_900', _bg => '#fff0f0f0' }, { name=>"red_dark", id=>9, dark=>1, colorAccent => '#ffd50000', colorPrimary => '#ffc62828', colorPrimaryDark => '#ffb71c1c', controlsNormal=>'@color/material_grey_300', _bg => '#ff2a2a2a' }, + { name=>"amoled_dark", id=>10, dark=>1, colorAccent => '#ffd8d8d8', colorPrimary => '#ff000000', colorPrimaryDark => '#ff000000', controlsNormal=>'@color/material_grey_600', colorBackground=>'@android:color/black', _bg => '#ff000000' }, ]; @@ -172,5 +173,16 @@ EOF EOF } $DATA .= "\n\n"; + + # Add custom colorBackground if set, inherit from theme otherwise. + # If we force this, we also set overlay_background_color to the same value + # as it is expected to match the background. + if (defined($this->{colorBackground})) { + $DATA =~ s/.+<\/item>/ + $this->{colorBackground}<\/item> + $this->{colorBackground}<\/item> + /; + } + return $DATA } diff --git a/res/values-v21/theme-amoled_dark.xml b/res/values-v21/theme-amoled_dark.xml new file mode 100644 index 00000000..fb84c160 --- /dev/null +++ b/res/values-v21/theme-amoled_dark.xml @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + diff --git a/res/values-v21/themes-list.xml b/res/values-v21/themes-list.xml index b5ca78dd..86eaa656 100644 --- a/res/values-v21/themes-list.xml +++ b/res/values-v21/themes-list.xml @@ -1,17 +1,18 @@ - - @style/Library - @style/Standard_dark.Library - @style/Grey_light.Library - @style/Grey_dark.Library - @style/Orange_light.Library - @style/Orange_dark.Library - @style/Blue_light.Library - @style/Blue_dark.Library - @style/Red_light.Library - @style/Red_dark.Library + + @style/VanillaBase + @style/Standard_dark.VanillaBase + @style/Grey_light.VanillaBase + @style/Grey_dark.VanillaBase + @style/Orange_light.VanillaBase + @style/Orange_dark.VanillaBase + @style/Blue_light.VanillaBase + @style/Blue_dark.VanillaBase + @style/Red_light.VanillaBase + @style/Red_dark.VanillaBase + @style/Amoled_dark.VanillaBase @@ -25,6 +26,7 @@ @style/Blue_dark.PopupDialog @style/Red_light.PopupDialog @style/Red_dark.PopupDialog + @style/Amoled_dark.PopupDialog @@ -38,19 +40,21 @@ @style/Blue_dark.BackActionBar @style/Red_light.BackActionBar @style/Red_dark.BackActionBar + @style/Amoled_dark.BackActionBar - - @style/VanillaBase - @style/Standard_dark.VanillaBase - @style/Grey_light.VanillaBase - @style/Grey_dark.VanillaBase - @style/Orange_light.VanillaBase - @style/Orange_dark.VanillaBase - @style/Blue_light.VanillaBase - @style/Blue_dark.VanillaBase - @style/Red_light.VanillaBase - @style/Red_dark.VanillaBase + + @style/Library + @style/Standard_dark.Library + @style/Grey_light.Library + @style/Grey_dark.Library + @style/Orange_light.Library + @style/Orange_dark.Library + @style/Blue_light.Library + @style/Blue_dark.Library + @style/Red_light.Library + @style/Red_dark.Library + @style/Amoled_dark.Library @@ -64,34 +68,9 @@ @style/Blue_dark.Playback @style/Red_light.Playback @style/Red_dark.Playback + @style/Amoled_dark.Playback - - light - dark - light - dark - light - dark - light - dark - light - dark - - - - #ff263238,#fff0f0f0,#ff37474f - #ff263238,#ff2a2a2a,#ff37474f - #ff090909,#fff0f0f0,#ff212121 - #ff090909,#ff2a2a2a,#ff212121 - #FFBF360C,#fff0f0f0,#FFE65100 - #FFBF360C,#ff2a2a2a,#FFE65100 - #FF01579B,#fff0f0f0,#FF0277BD - #FF01579B,#ff2a2a2a,#FF0277BD - #ffb71c1c,#fff0f0f0,#ffc62828 - #ffb71c1c,#ff2a2a2a,#ffc62828 - - standard_light standard_dark @@ -103,6 +82,21 @@ blue_dark red_light red_dark + amoled_dark + + + + light + dark + light + dark + light + dark + light + dark + light + dark + dark @@ -116,6 +110,21 @@ 7 8 9 + 10 + + + + #ff263238,#fff0f0f0,#ff37474f + #ff263238,#ff2a2a2a,#ff37474f + #ff090909,#fff0f0f0,#ff212121 + #ff090909,#ff2a2a2a,#ff212121 + #FFBF360C,#fff0f0f0,#FFE65100 + #FFBF360C,#ff2a2a2a,#FFE65100 + #FF01579B,#fff0f0f0,#FF0277BD + #FF01579B,#ff2a2a2a,#FF0277BD + #ffb71c1c,#fff0f0f0,#ffc62828 + #ffb71c1c,#ff2a2a2a,#ffc62828 + #ff000000,#ff000000,#ff000000