Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a60b018 authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

Theme System UI with new Android S palette and theme framework colors to theme...

Theme System UI with new Android S palette and theme framework colors to theme different components in os
parent 88ade5bb
Loading
Loading
Loading
Loading
+45 −2
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@
    <color name="system_accent1_50">#D1E8FF</color>
    <!-- Shade of the accent system color at 90% perceptual luminance (L* in L*a*b* color space).
     This value can be overlaid at runtime by OverlayManager RROs. -->
    <color name="system_accent1_100">#9DCEFF</color>
    <color name="system_accent1_100">#5DB2FF</color>
    <!-- Shade of the accent system color at 80% perceptual luminance (L* in L*a*b* color space).
     This value can be overlaid at runtime by OverlayManager RROs. -->
    <color name="system_accent1_200">#5DB2FF</color>
@@ -55,7 +55,7 @@
    <color name="system_accent1_500">#007EF0</color>
    <!-- Shade of the accent system color at 40% perceptual luminance (L* in L*a*b* color space).
     This value can be overlaid at runtime by OverlayManager RROs. -->
    <color name="system_accent1_600">#0073DB</color>
    <color name="system_accent1_600">#0086FF</color>
    <!-- Shade of the accent system color at 30% perceptual luminance (L* in L*a*b* color space).
     This value can be overlaid at runtime by OverlayManager RROs. -->
    <color name="system_accent1_700">#0060B8</color>
@@ -228,4 +228,47 @@
    <!-- Darkest shade of the secondary neutral color used by the system. Black.
     This value can be overlaid at runtime by OverlayManager RROs. -->
    <color name="system_neutral2_1000">#000000</color>

    <color name="primary_device_default_settings">@color/primary_device_default_dark</color>
    <color name="accent_primary_device_default">@*android:color/accent_device_default</color>
    <color name="primary_device_default_dark">@color/background_device_default_dark</color>
    <color name="primary_device_default_light">@color/background_device_default_light</color>
    <color name="navigation_bar_divider_device_default_settings">#00000000</color>

    <color name="background_device_default_dark">#121212</color>
    <color name="background_device_default_light">#ffffff</color>
    <color name="background_floating_device_default_dark">#1e1e1e</color>
    <color name="background_floating_device_default_light">#ffffff</color>
    <color name="surface_header_dark">#272727</color>
    <color name="surface_header_light">#ffffff</color>
    <color name="surface_light">#ffffff</color>
    <color name="surface_dark">#1e1e1e</color>


    <!-- Temp color for some prebuilt apps-->

    <!-- Accent colors -->
    <color name="accent_material_light">#0086FF</color>
    <color name="accent_material_dark">#5DB2FF</color>

    <!-- Primary and Secondary text -->
    <color name="bright_foreground_holo_dark">#DEFFFFFF</color>
    <color name="bright_foreground_holo_light">#DE000000</color>
    <color name="dim_foreground_holo_dark">#99FFFFFF</color>
    <color name="dim_foreground_holo_light">#99000000</color>

    <!-- Background color -->
    <color name="background_material_dark">#121212</color>
    <color name="background_material_light">#FAFAFA</color>

    <!-- Dialog/Popup colors -->
    <color name="background_floating_material_dark">#1E1E1E</color>
    <color name="background_floating_material_light">#FFFFFF</color>

    <!-- Action/Status Bar colors colorPrimary and colorPrimarDark -->
    <color name="primary_material_dark">#272727</color>
    <color name="primary_material_light">#FFFFFF</color>
    <color name="primary_dark_material_dark">#272727</color>
    <color name="primary_dark_material_light">#FFFFFF</color>

</resources>
+67 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
    Copyright (C) 2015 The Android Open Source Project

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

         http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-->

<resources>
    <style name="SudFullDynamicColorThemeGlifV3" parent="SudDynamicColorThemeGlifV3">
    <item name="android:windowBackground">@*android:color/background_device_default_dark</item>
    <item name="android:colorForeground">@android:color/system_neutral1_50</item>
    <item name="android:colorForegroundInverse">@*android:color/background_device_default_dark</item>
    <item name="android:colorBackground">@*android:color/background_device_default_dark</item>
    <item name="android:colorBackgroundCacheHint">@*android:color/background_device_default_dark</item>
    <item name="colorBackgroundFloating">@*android:color/background_floating_device_default_dark</item>
    <item name="android:navigationBarColor">@*android:color/surface_header_dark</item>

    <item name="android:textColorPrimary">@color/sud_system_primary_text</item>
    <item name="android:textColorSecondary">@color/sud_system_secondary_text</item>
    <item name="android:textColorTertiary">@color/sud_system_tertiary_text_inactive</item>
    <item name="android:textColorPrimaryDisableOnly">@color/sud_system_tertiary_text_inactive</item>
    <item name="android:textColorPrimaryInverseDisableOnly">@color/sud_system_tertiary_text_inactive</item>

    <item name="colorControlNormal">?android:attr/textColorSecondary</item>
    <item name="colorControlHighlight">@color/ripple_material_dark</item>
    <item name="colorButtonNormal">@color/button_material_dark</item>
    <item name="colorSwitchThumbNormal">@color/switch_thumb_material_dark</item>

    <item name="alertDialogTheme">@style/SudFullDynamicColorAlertDialogThemeCompat</item>

    <item name="sucFullDynamicColor">true</item>
  </style>

  <style name="SudFullDynamicColorThemeGlifV3.Light" parent="SudDynamicColorThemeGlifV3.Light">
    <item name="android:windowBackground">@*android:color/background_device_default_light</item>
    <item name="android:colorForeground">@android:color/system_neutral1_900</item>
    <item name="android:colorForegroundInverse">@*android:color/background_device_default_light</item>
    <item name="android:colorBackground">@*android:color/background_device_default_light</item>
    <item name="android:colorBackgroundCacheHint">@*android:color/background_device_default_light</item>
    <item name="colorBackgroundFloating">@*android:color/background_floating_device_default_light</item>
    <item name="android:navigationBarColor">@*android:color/surface_header_light</item>

    <item name="android:textColorPrimary">@color/sud_system_primary_text</item>
    <item name="android:textColorSecondary">@color/sud_system_secondary_text</item>
    <item name="android:textColorTertiary">@color/sud_system_tertiary_text_inactive</item>
    <item name="android:textColorPrimaryDisableOnly">@color/sud_system_tertiary_text_inactive</item>

    <item name="colorControlNormal">?android:attr/textColorSecondary</item>
    <item name="colorControlHighlight">@color/ripple_material_light</item>
    <item name="colorButtonNormal">@color/button_material_light</item>
    <item name="colorSwitchThumbNormal">@color/switch_thumb_material_light</item>

    <item name="alertDialogTheme">@style/SudFullDynamicColorAlertDialogThemeCompat.Light</item>

    <item name="sucFullDynamicColor">true</item>
  </style>
</resources>
+23 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
    Copyright (C) 2015 The Android Open Source Project

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

         http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-->

<resources>
    <color name="sud_glif_background_color_dark">@*android:color/background_device_default_dark</color>
    <color name="sud_glif_v3_dialog_background_color_dark">@*android:color/background_floating_device_default_dark</color>
    <color name="sud_glif_v3_dialog_background_color_light">@*android:color/background_floating_device_default_light</color>
    <color name="sud_glif_v3_nav_bar_divider_color_light">#00000000</color>
</resources>
+33 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2021 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<resources>
   <style name="Theme.DeviceDefault.SystemUI" parent="android:Theme.DeviceDefault">
        <!-- Color palette -->
        <item name="colorPrimaryDark">@color/primary_dark_device_default_settings</item>
        <item name="colorSecondary">@color/secondary_device_default_settings</item>
        <item name="colorAccent">@color/accent_device_default_dark</item>
        <item name="colorError">@color/error_color_device_default_dark</item>
        <item name="colorSurfaceHeader">@android:color/black</item>
        <item name="colorControlNormal">?attr/textColorPrimary</item>
        <item name="alertDialogTheme">@style/Theme.DeviceDefault.Dialog.Alert</item>
        <item name="forceDarkAllowed">false</item>
        <item name="colorAccentSecondary">@color/accent_device_default_dark</item>
        <item name="colorSurface">#2F3034</item>
        <item name="android:colorBackgroundFloating">#1A1C1F</item>
    </style>
</resources>
+54 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2021 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<resources>
   <style name="Theme.DeviceDefault.SystemUI" parent="Theme.DeviceDefault.Light">
        <!-- Color palette -->
        <item name="colorPrimary">@color/primary_device_default_settings_light</item>
        <item name="colorPrimaryDark">@color/primary_dark_device_default_settings_light</item>
        <item name="colorSecondary">@color/secondary_device_default_settings_light</item>
        <item name="colorAccent">@color/accent_device_default_light</item>
        <item name="colorAccentPrimary">@color/accent_device_default</item>
        <item name="colorAccentSecondary">@color/accent_device_default</item>
        <item name="colorAccentTertiary">@color/accent_device_default</item>
        <item name="colorAccentPrimaryVariant">@color/accent_primary_variant_light_device_default</item>
        <item name="colorAccentSecondaryVariant">@color/accent_secondary_variant_light_device_default</item>
        <item name="colorAccentTertiaryVariant">@color/accent_tertiary_variant_light_device_default</item>
        <item name="colorSurface">@android:color/white</item>
        <item name="colorSurfaceHighlight">@color/surface_highlight_light</item>
        <item name="colorSurfaceVariant">@color/surface_variant_light</item>
        <item name="colorSurfaceHeader">#F1F0F3</item>
        <item name="colorError">@color/error_color_device_default_light</item>
        <item name="colorControlNormal">?attr/textColorPrimary</item>
        <item name="alertDialogTheme">@style/Theme.DeviceDefault.Light.Dialog.Alert</item>

        <!-- Text styles -->
        <item name="textAppearanceButton">@style/TextAppearance.DeviceDefault.Widget.Button</item>

        <!-- Button styles -->
        <item name="buttonCornerRadius">@dimen/config_buttonCornerRadius</item>
        <item name="buttonBarButtonStyle">@style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog</item>

        <!-- Progress bar attributes -->
        <item name="colorProgressBackgroundNormal">@color/config_progress_background_tint</item>
        <item name="progressBarCornerRadius">@dimen/config_progressBarCornerRadius</item>

        <!-- Toolbar attributes -->
        <item name="toolbarStyle">@style/Widget.DeviceDefault.Toolbar</item>
        <item name="android:colorBackgroundFloating">#FAF9FB</item>
    </style>
</resources>
Loading