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

Commit ec36ab6e authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

QS: fix color of power and settings button to match the edit button

parent f14684e0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@
        </item>
        <item>
            <shape android:shape="rectangle">
                <solid android:color="?attr/offStateColor"/>
                <solid android:color="?attr/underSurfaceColor"/>
                <corners android:radius="@dimen/qs_footer_action_corner_radius"/>
            </shape>
        </item>
+12 −4
Original line number Diff line number Diff line
@@ -145,7 +145,11 @@ class FooterActionsViewModel(
                R.drawable.ic_settings,
                ContentDescription.Resource(R.string.accessibility_quick_settings_settings)
            ),
            iconTint = null,
            iconTint = 
                Utils.getColorAttrDefaultColor(
                        context,
                        com.android.internal.R.attr.textColorPrimary,
                ),
            backgroundColor = R.attr.offStateColor,
            this::onSettingsButtonClicked,
        )
@@ -162,9 +166,9 @@ class FooterActionsViewModel(
                iconTint =
                    Utils.getColorAttrDefaultColor(
                        context,
                        com.android.internal.R.attr.textColorOnAccent,
                        com.android.internal.R.attr.textColorPrimary,
                    ),
                backgroundColor = com.android.internal.R.attr.colorAccent,
                backgroundColor = R.attr.offStateColor,
                this::onPowerButtonClicked,
            )
        } else {
@@ -263,7 +267,11 @@ class FooterActionsViewModel(
                        userSwitcherContentDescription(status.currentUserName)
                    ),
                ),
            iconTint = null,
            iconTint = 
                Utils.getColorAttrDefaultColor(
                        context,
                        com.android.internal.R.attr.textColorPrimary,
                ),
            backgroundColor = R.attr.offStateColor,
            onClick = this::onUserSwitcherClicked,
        )