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

Commit 3cad110c authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

SettingsLib: Theme according to our palette

Themes various elements in settings app like spinner, dropdown menu,
tabs, switch, etc
Changes reference for colors in compose to our colors to better match
palette
parent d14df14b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@
       xmlns:tools="http://schemas.android.com/tools"
       tools:targetApi="28"
       android:shape="rectangle">
    <solid android:color="@androidprv:color/materialColorSurfaceContainerHigh" />
    <solid android:color="@color/settingslib_state_on_color"/>
    <corners
        android:topLeftRadius="?android:attr/dialogCornerRadius"
        android:topRightRadius="0dp"
+2 −2
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@
       xmlns:tools="http://schemas.android.com/tools"
       tools:targetApi="28"
       android:shape="rectangle">
    <solid android:color="@androidprv:color/materialColorSurfaceContainerHigh" />
    <solid android:color="@color/settingslib_state_on_color" />
    <corners
        android:topLeftRadius="0dp"
        android:topRightRadius="?android:attr/dialogCornerRadius"
+2 −2
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android"
       xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
       android:shape="rectangle">
    <solid android:color="@androidprv:color/materialColorSurfaceContainerHigh" />
    <solid android:color="@color/settingslib_state_on_color" />
    <corners
        android:radius="0dp"
    />
+0 −23
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright (C) 2023 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.
-->

<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_enabled="false"
          android:color="@android:color/system_accent1_100"
          android:alpha="?android:attr/disabledAlpha" />
    <item android:color="@android:color/system_accent1_100"/>
</selector>
 No newline at end of file
+2 −2
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@

<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_enabled="false"
          android:color="@color/settingslib_materialColorOnPrimaryContainer"
          android:color="@*android:color/e_primary_text_color_dark"
          android:alpha="?android:attr/disabledAlpha" />
    <item android:color="@color/settingslib_materialColorOnPrimaryContainer"/>
    <item android:color="@*android:color/e_primary_text_color_dark"/>
</selector>
 No newline at end of file
Loading