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

Commit a04e94dc authored by Santiago Etchebehere's avatar Santiago Etchebehere Committed by Android (Google) Code Review
Browse files

Merge "Update the switch styles" into main

parents abdb4ec4 dc191a54
Loading
Loading
Loading
Loading
+6 −10
Original line number Diff line number Diff line
@@ -67,21 +67,17 @@
        android:layout_marginHorizontal="@dimen/floating_sheet_content_horizontal_padding"
        android:orientation="horizontal">

        <TextView
            android:id="@+id/themed_icon_title"
            style="@style/SectionTitleTextStyle"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="@string/themed_icon_title" />

        <com.google.android.material.materialswitch.MaterialSwitch
            style="@style/SettingslibSwitchStyle.Expressive"
            android:id="@+id/themed_icon_toggle"
            android:layout_width="wrap_content"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@null"
            android:focusable="false"
            android:focusable="true"
            android:clickable="true"
            android:minHeight="0dp"
            android:text="@string/themed_icon_title"
            android:textAppearance="@style/SectionTitleTextStyle"
            android:theme="@style/Theme.Material3.DynamicColors.DayNight" />
    </LinearLayout>
</LinearLayout>
 No newline at end of file
+2 −0
Original line number Diff line number Diff line
@@ -48,10 +48,12 @@
        app:layout_constraintBottom_toBottomOf="parent" />

    <com.google.android.material.materialswitch.MaterialSwitch
        style="@style/SettingslibSwitchStyle.Expressive"
        android:id="@+id/clock_style_clock_size_switch"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginEnd="@dimen/floating_sheet_content_horizontal_padding"
        android:clickable="true"
        app:layout_constraintTop_toTopOf="@+id/clock_style_clock_size_title"
        app:layout_constraintBottom_toBottomOf="@+id/clock_style_clock_size_description"
        app:layout_constraintEnd_toEndOf="parent"
+4 −9
Original line number Diff line number Diff line
@@ -57,21 +57,16 @@
            android:layout_marginHorizontal="@dimen/floating_sheet_content_horizontal_padding"
            android:orientation="horizontal">

            <TextView
                android:id="@+id/dark_mode_toggle_title"
                style="@style/SectionTitleTextStyle"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:text="@string/mode_title" />

            <com.google.android.material.materialswitch.MaterialSwitch
                style="@style/SettingslibSwitchStyle.Expressive"
                android:id="@+id/dark_mode_toggle"
                android:layout_width="wrap_content"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@null"
                android:focusable="false"
                android:minHeight="0dp"
                android:text="@string/mode_title"
                android:textAppearance="@style/SectionTitleTextStyle"
                android:theme="@style/Theme.Material3.DynamicColors.DayNight" />
        </LinearLayout>
    </LinearLayout>
+1 −1
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ object ColorsFloatingSheetBinder {
        ColorUpdateBinder.bind(
            setColor = { color ->
                view.requireViewById<TextView>(R.id.color_type_tab_subhead).setTextColor(color)
                view.requireViewById<TextView>(R.id.dark_mode_toggle_title).setTextColor(color)
                view.requireViewById<TextView>(R.id.dark_mode_toggle).setTextColor(color)
            },
            color = colorUpdateViewModel.colorOnSurface,
            shouldAnimate = isFloatingSheetActive,