startActivity(intent);
## Contributors
-* Mark Morilla (icons) (https://plus.google.com/106169552593075739372)
+* Mark Morilla (app logo) (https://plus.google.com/106169552593075739372)
* naofum (Japanese translation)
bindPreferenceSummaryToValue(findPreference("theme"));
bindPreferenceSummaryToValue(findPreference("invisible_button"));
bindPreferenceSummaryToValue(findPreference("anchor"));
+ bindPreferenceSummaryToValue(findPreference("app_drawer_icon"));
AppCompatActivity activity = (AppCompatActivity) getActivity();
activity.setTitle(R.string.pref_header_general);
taskbar.setEnabled(false);
startButton = (ImageView) layout.findViewById(R.id.start_button);
+ int padding;
+
+ if(pref.getBoolean("app_drawer_icon", false)) {
+ startButton.setImageDrawable(ContextCompat.getDrawable(this, R.mipmap.ic_launcher));
+ padding = getResources().getDimensionPixelSize(R.dimen.app_drawer_icon_padding_alt);
+ } else {
+ startButton.setImageDrawable(ContextCompat.getDrawable(this, R.drawable.all_apps_button_icon));
+ padding = getResources().getDimensionPixelSize(R.dimen.app_drawer_icon_padding);
+ }
+
+ startButton.setPadding(padding, padding, padding, padding);
startButton.setOnClickListener(ocl);
startButton.setOnLongClickListener(new View.OnLongClickListener() {
@Override
<ImageView
android:id="@+id/start_button"
android:layout_width="@dimen/icon_size"
- android:layout_height="@dimen/icon_size"
- android:padding="4dp"
- android:src="@drawable/all_apps_button_icon" />
+ android:layout_height="@dimen/icon_size" />
<View
android:id="@+id/divider"
<ImageView
android:id="@+id/start_button"
android:layout_width="@dimen/icon_size"
- android:layout_height="@dimen/icon_size"
- android:padding="4dp"
- android:src="@drawable/all_apps_button_icon" />
+ android:layout_height="@dimen/icon_size" />
</LinearLayout>
<ImageView
android:id="@+id/start_button"
android:layout_width="@dimen/icon_size"
- android:layout_height="@dimen/icon_size"
- android:padding="4dp"
- android:src="@drawable/all_apps_button_icon" />
+ android:layout_height="@dimen/icon_size" />
<View
android:id="@+id/divider"
<ImageView
android:id="@+id/start_button"
android:layout_width="@dimen/icon_size"
- android:layout_height="@dimen/icon_size"
- android:padding="4dp"
- android:src="@drawable/all_apps_button_icon" />
+ android:layout_height="@dimen/icon_size" />
</LinearLayout>
<string name="pref_title_use_mask">Use masks for unthemed icons</string>
<string name="pref_description_use_mask">When an icon pack is set, generate icons unthemed apps using masking images found within the icon pack. (Experimental)</string>
+ <string name="pref_title_app_drawer_icon">Use Taskbar logo as start menu icon</string>
+
</resources>
<dimen name="phone_size_width">320dp</dimen>
<dimen name="phone_size_height">480dp</dimen>
<dimen name="max_width">@dimen/match_parent</dimen>
+ <dimen name="app_drawer_icon_padding">4dp</dimen>
+ <dimen name="app_drawer_icon_padding_alt">7dp</dimen>
</resources>
<string name="pref_description_freeform_hack">Allows Taskbar to launch apps in freeform window mode, for a more desktop-like experience.\n\nThis feature is experimental, and may cause issues with standard split-screen multitasking.</string>
<string name="pref_header_about">About Taskbar</string>
- <string name="pref_about_description">Taskbar: start menu and recent apps at your fingertips\n\n© 2016 Braden Farmer\nLauncher icon by Mark Morilla\n\nClick here to check for updates or leave a rating! %1$s</string>
+ <string name="pref_about_description">Taskbar: start menu and recent apps at your fingertips\n\n© 2016 Braden Farmer\nApp logo by Mark Morilla\n\nClick here to check for updates or leave a rating! %1$s</string>
<string name="pref_title_hide_taskbar">Collapse Taskbar when selecting an app</string>
<string name="pref_title_use_mask">Use masks for unthemed icons</string>
<string name="pref_description_use_mask">When an icon pack is set, generate icons unthemed apps using masking images found within the icon pack. (Experimental)</string>
+ <string name="pref_title_app_drawer_icon">Use Taskbar logo as start menu icon</string>
+
</resources>
<CheckBoxPreference
android:defaultValue="false"
+ android:key="app_drawer_icon"
+ android:title="@string/pref_title_app_drawer_icon"/>
+
+ <CheckBoxPreference
+ android:defaultValue="false"
android:key="start_on_boot"
android:title="@string/pref_title_start_on_boot"/>