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

Commit 6f6b8501 authored by chihhangchuang's avatar chihhangchuang
Browse files

Add shadow effect to lockscreen preview text

Launcher: https://screenshot.googleplex.com/yPddxooRx3O.png
After:
https://screenshot.googleplex.com/0cdp3KsEn14.png
https://screenshot.googleplex.com/mKEXA0fmmct.png

Test: Manually
Fixes: 159810037
Change-Id: Idb14b6b1e2ebc9e612db594a7c910b13b3d113dd
parent 8fbef256
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -31,14 +31,9 @@
    <color name="clockface_preview_background">@android:color/black</color>

    <color name="theme_preview_icon_color">@color/google_grey700</color>
    <color name="theme_preview_workspace_shadow_color_dark">#B0000000</color>
    <color name="theme_preview_workspace_shadow_color_transparent">@android:color/transparent</color>
    <color name="theme_preview_color_icons_background">@color/material_white_100</color>
    <color name="theme_preview_color_icons_title_color">@color/black_87_alpha</color>

    <color name="text_color_dark">#2d2d2d</color>
    <color name="text_color_light">@color/material_white_text</color>

    <color name="control_grey">#757575</color>
    <color name="switch_track_tint">#acacac</color>
    <color name="switch_thumb_tint">#f1f1f1</color>
+0 −1
Original line number Diff line number Diff line
@@ -86,7 +86,6 @@
    <dimen name="preview_theme_color_icons_title_text_size">12sp</dimen>
    <dimen name="preview_theme_color_icons_icon_size">@dimen/preview_theme_icon_size</dimen>
    <dimen name="preview_theme_color_icons_tile_size">@dimen/preview_theme_tile_size</dimen>
    <dimen name="preview_theme_smartspace_key_ambient_shadow_blur">1.5dp</dimen>
    <dimen name="preview_theme_app_name_key_ambient_shadow_blur">2.5dp</dimen>

    <!--  For the customization previews on the picker. -->
+3 −3
Original line number Diff line number Diff line
@@ -187,8 +187,8 @@ class ThemeOptionPreviewer implements LifecycleObserver {
                ? R.color.text_color_light
                : R.color.text_color_dark);
        int textShadowColor = mContext.getColor(useLightTextColor
                ? R.color.theme_preview_workspace_shadow_color_dark
                : R.color.theme_preview_workspace_shadow_color_transparent);
                ? R.color.smartspace_preview_shadow_color_dark
                : R.color.smartspace_preview_shadow_color_transparent);
        // Update the top status bar clock text color.
        mStatusBarClock.setTextColor(textColor);
        // Update the top status bar icon color.
@@ -201,7 +201,7 @@ class ThemeOptionPreviewer implements LifecycleObserver {
        mSmartSpaceDate.setTextColor(textColor);
        mSmartSpaceDate.setShadowLayer(
                mContext.getResources().getDimension(
                        R.dimen.preview_theme_smartspace_key_ambient_shadow_blur),
                        R.dimen.smartspace_preview_key_ambient_shadow_blur),
                /* dx = */ 0,
                /* dy = */ 0,
                textShadowColor);