Update for shortcuts

Change-Id: If28d540fd9e300b9c26d5cb6869be3d475124e9e
This commit is contained in:
Jason Monk
2015-06-16 15:00:41 -04:00
parent 744f2adb56
commit 78b1715bcb
4 changed files with 5 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

After

Width:  |  Height:  |  Size: 9.7 KiB

View File

@@ -28,6 +28,7 @@
android:id="@android:id/icon"
android:layout_width="@dimen/shortcut_size"
android:layout_height="@dimen/shortcut_size"
android:tint="@color/icon_accent"
android:padding="12dp"
android:scaleType="fitXY" />

View File

@@ -100,4 +100,7 @@
<color name="zen_rule_name_warning">@color/system_warning_color</color>
<!-- Accent color that matches the settings launcher icon -->
<color name="icon_accent">#ffabffec</color>
</resources>

View File

@@ -73,7 +73,7 @@ public class CreateShortcut extends LauncherActivity {
}
private Bitmap createIcon(int resource) {
Context context = new ContextThemeWrapper(this, android.R.style.Theme_Material_Light);
Context context = new ContextThemeWrapper(this, android.R.style.Theme_Material);
View view = LayoutInflater.from(context).inflate(R.layout.shortcut_badge, null);
((ImageView) view.findViewById(android.R.id.icon)).setImageResource(resource);