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

Commit c27a43ba authored by Winson Chung's avatar Winson Chung
Browse files

Restore specific colors for floating rotation button

- The rotation button background does not change based on the current
  light/dark mode

Bug: 288126260
Test: Check rotation button color with dark mode enabled/disabled
Change-Id: If4d5edfd4b118e4f16b6d472f206587e7cd61f98
parent 20957363
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -28,6 +28,10 @@
    <color name="taskbar_stashed_handle_light_color">#EBffffff</color>
    <color name="taskbar_stashed_handle_dark_color">#99000000</color>

    <!-- Floating rotation button -->
    <color name="floating_rotation_button_light_color">#ffffff</color>
    <color name="floating_rotation_button_dark_color">#99000000</color>

    <!-- Gesture navigation tutorial -->
    <color name="gesture_tutorial_back_arrow_color">#FFFFFFFF</color>

+2 −2
Original line number Diff line number Diff line
@@ -232,8 +232,8 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
                        ? new DesktopNavbarButtonsViewController(this, navButtonsView)
                        : new NavbarButtonsViewController(this, navButtonsView),
                new RotationButtonController(this,
                        c.getColor(R.color.taskbar_nav_icon_light_color),
                        c.getColor(R.color.taskbar_nav_icon_dark_color),
                        c.getColor(R.color.floating_rotation_button_light_color),
                        c.getColor(R.color.floating_rotation_button_dark_color),
                        R.drawable.ic_sysbar_rotate_button_ccw_start_0,
                        R.drawable.ic_sysbar_rotate_button_ccw_start_90,
                        R.drawable.ic_sysbar_rotate_button_cw_start_0,