Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
packages_apps_DeskClock
Commits
940f97fe
Commit
940f97fe
authored
9 years ago
by
Dylan Phan
Browse files
Options
Download
Email Patches
Plain Diff
Fix digital widget drop shadows.
Bug: 24496589 Change-Id: Ic79b44e47824e3a1a494f28b87d2dde9a0a0d9f9
parent
78e2ecd5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
res/values-v23/styles.xml
res/values-v23/styles.xml
+2
-0
res/values/colors.xml
res/values/colors.xml
+1
-1
res/values/dimens.xml
res/values/dimens.xml
+3
-2
res/values/styles.xml
res/values/styles.xml
+3
-0
No files found.
res/values-v23/styles.xml
View file @
940f97fe
...
...
@@ -15,6 +15,7 @@
<item
name=
"android:fontFamily"
>
sans-serif-light
</item>
<item
name=
"android:shadowRadius"
>
@dimen/digital_widget_shadow_radius
</item>
<item
name=
"android:shadowColor"
>
@color/digital_widget_shadow_color
</item>
<item
name=
"android:shadowDy"
>
@dimen/digital_widget_shadow_dy
</item>
</style>
<style
name=
"widget_label"
parent=
"label"
>
...
...
@@ -23,5 +24,6 @@
<item
name=
"android:letterSpacing"
>
0.15
</item>
<item
name=
"android:shadowRadius"
>
@dimen/digital_widget_shadow_radius
</item>
<item
name=
"android:shadowColor"
>
@color/digital_widget_shadow_color
</item>
<item
name=
"android:shadowDy"
>
@dimen/digital_widget_shadow_dy
</item>
</style>
</resources>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
res/values/colors.xml
View file @
940f97fe
...
...
@@ -57,5 +57,5 @@
<color
name=
"notification_divider"
>
#272727
</color>
<!-- shadowColor for digital widget text -->
<color
name=
"digital_widget_shadow_color"
>
#
B0
000000
</color>
<color
name=
"digital_widget_shadow_color"
>
#
DD
000000
</color>
</resources>
This diff is collapsed.
Click to expand it.
res/values/dimens.xml
View file @
940f97fe
...
...
@@ -178,8 +178,9 @@
<dimen
name=
"digital_widget_list_margin_top"
>
20dp
</dimen>
<dimen
name=
"digital_widget_city_margin_bottom"
>
10dp
</dimen>
<!-- shadowRadius for digital widget text -->
<item
name=
"digital_widget_shadow_radius"
format=
"float"
type=
"dimen"
>
2.0
</item>
<!-- shadow styles for digital widget text -->
<item
name=
"digital_widget_shadow_radius"
format=
"float"
type=
"dimen"
>
2.75
</item>
<item
name=
"digital_widget_shadow_dy"
format=
"float"
type=
"dimen"
>
2.0
</item>
<!-- Bottom margin for the expand area -->
<dimen
name=
"collapse_expand_height"
>
72dip
</dimen>
...
...
This diff is collapsed.
Click to expand it.
res/values/styles.xml
View file @
940f97fe
...
...
@@ -166,6 +166,7 @@
<item
name=
"android:fontFamily"
>
sans-serif-thin
</item>
<item
name=
"android:shadowRadius"
>
@dimen/digital_widget_shadow_radius
</item>
<item
name=
"android:shadowColor"
>
@color/digital_widget_shadow_color
</item>
<item
name=
"android:shadowDy"
>
@dimen/digital_widget_shadow_dy
</item>
</style>
<style
name=
"label"
>
...
...
@@ -180,6 +181,7 @@
<item
name=
"android:textSize"
>
@dimen/widget_label_font_size
</item>
<item
name=
"android:shadowRadius"
>
@dimen/digital_widget_shadow_radius
</item>
<item
name=
"android:shadowColor"
>
@color/digital_widget_shadow_color
</item>
<item
name=
"android:shadowDy"
>
@dimen/digital_widget_shadow_dy
</item>
</style>
<style
name=
"header"
>
...
...
@@ -205,6 +207,7 @@
<item
name=
"android:textSize"
>
@dimen/widget_big_font_size
</item>
<item
name=
"android:shadowRadius"
>
@dimen/digital_widget_shadow_radius
</item>
<item
name=
"android:shadowColor"
>
@color/digital_widget_shadow_color
</item>
<item
name=
"android:shadowDy"
>
@dimen/digital_widget_shadow_dy
</item>
</style>
<style
name=
"alarm_label"
>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment