nx: devicesettings: Customize appearance

- new icon
- new banner
- adjust strings etc.
- show in all launcher

Change-Id: I615fdce801a45929e119ac895615d7c83f845871
This commit is contained in:
tmakin authored and Nolen Johnson committed 2024-01-25 15:54:02 -05:00
1 parent 837547077c
commit df1c423111
20 files changed
+27 -5

No files matched your search

+9 -1
View File
@@ -6,6 +6,9 @@
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.CONTROL_KEYGUARD" />
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
<uses-feature
android:name="android.software.leanback"
android:required="false" />
<uses-sdk
android:minSdkVersion="28"
@@ -15,6 +18,8 @@
<application
android:label="@string/device_settings_app_name"
android:icon="@mipmap/ic_launcher"
android:banner="@mipmap/ic_banner"
android:persistent="true">
<service android:name=".DockService"
@@ -42,11 +47,11 @@
<activity
android:name=".DisplaySettingsActivity"
android:label="@string/display_panel_title"
android:icon="@drawable/ic_settings_additional_buttons"
android:theme="@style/Theme.Main">
<intent-filter>
<action android:name="com.android.settings.action.IA_SETTINGS" />
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
<meta-data
@@ -55,6 +60,9 @@
<meta-data
android:name="com.android.settings.summary"
android:resource="@string/display_panel_summary" />
<meta-data
android:name="com.android.settings.icon"
android:resource="@drawable/ic_settings_additional_buttons" />
</activity>
</application>
</manifest>
@@ -5,6 +5,7 @@ from: https://github.com/neuicons/neu
MIT License
Copyright (c) 2020 Royyan Wijaya
Copyright (c) 2023 Thomas Makin
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -29,9 +30,10 @@ SOFTWARE.
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
android:viewportHeight="24"
android:tint="?android:attr/colorControlNormal">
<path
android:fillColor="#757575"
android:fillColor="#000000"
android:pathData="M23,12v6a1,1,0,0,1-1,1H13v2h3a1,1,0,0,1,0,2H8a1,1,0,0,1,0-2h3V19H2a1,1,0,0,1-1-1V4A1,1,0,0,1,2,3H12a1,1,0,0,1,0,2H3V17H21V12a1,1,0,0,1,2,0ZM21.585,6.075a0.417 0.417 ,0,0,0,0.079 0.458 l0.444 0.444 a0.4 0.4 ,0,0,1,0,0.571l-0.56 0.561 a0.4 0.4 ,0,0,1-0.571,0l-0.444-0.444a0.416 0.416 ,0,0,0-0.458-0.08l-0.006,0a0.416 0.416 ,0,0,0-0.269 0.38 V8.6a0.4 0.4 ,0,0,1-0.4 0.4 H18.6a0.4 0.4 ,0,0,1-0.4-0.4V7.968a0.415 0.415 ,0,0,0-0.27-0.38l0,0a0.417 0.417 ,0,0,0-0.459 0.08 l-0.444 0.444 a0.4 0.4 ,0,0,1-0.571,0l-0.56-0.561a0.4 0.4 ,0,0,1,0-0.571l0.444-0.444a0.415 0.415 ,0,0,0,0.079-0.458l0-0.006a0.416 0.416 ,0,0,0-0.381-0.269H15.4a0.4 0.4 ,0,0,1-0.4-0.4V4.6a0.4 0.4 ,0,0,1,0.4-0.4h0.628a0.415 0.415 ,0,0,0,0.381-0.27l0-0.005a0.415 0.415 ,0,0,0-0.079-0.458l-0.444-0.444a0.4 0.4 ,0,0,1,0-0.571l0.56-0.561a0.4 0.4 ,0,0,1,0.571,0l0.444 0.444 a0.417 0.417 ,0,0,0,0.459 0.08 l0,0a0.415 0.415 ,0,0,0,0.27-0.38V1.4a0.4 0.4 ,0,0,1,0.4-0.4H19.4a0.4 0.4 ,0,0,1,0.4 0.4 v0.628a0.416 0.416 ,0,0,0,0.269 0.38 l0.006,0a0.416 0.416 ,0,0,0,0.458-0.08l0.444-0.444a0.4 0.4 ,0,0,1,0.571,0l0.56 0.561 a0.4 0.4 ,0,0,1,0,0.571l-0.444 0.444 a0.417 0.417 ,0,0,0-0.079 0.458 l0,0.005a0.416 0.416 ,0,0,0,0.381 0.27 H22.6a0.4 0.4 ,0,0,1,0.4 0.4 V5.4a0.4 0.4 ,0,0,1-0.4 0.4 h-0.628a0.417 0.417 ,0,0,0-0.381 0.269 ZM20.2,5A1.2,1.2,0,1,0,19,6.2,1.2,1.2,0,0,0,20.2,5Z" />
</vector>
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#3E0E2F</color>
</resources>
+2 -2
View File
@@ -15,8 +15,8 @@
limitations under the License.
-->
<resources>
<string name="display_panel_title">Display and Performance Configuration</string>
<string name="display_panel_summary">Adjust display and performance settings</string>
<string name="display_panel_title">Switch Configuration</string>
<string name="display_panel_summary">Adjust docking, performance, and controller settings</string>
<string name="perf_category_title">Customization</string>
<string name="perf_setting_title">Performance Mode</string>
<string name="perf_setting_summary">Modifies CPU and GPU clocks in order to get the best possible performance at the cost of higher battery wear and usage</string>
+3
View File
@@ -23,6 +23,9 @@
<item name="preferenceStyle">@style/Theme.Main.PreferenceStyle</item>
<item name="preferenceTheme">@style/Theme.Main.PreferenceTheme</item>
<item name="switchPreferenceStyle">@style/Theme.Main.SwitchPreferenceStyle</item>
<item name="android:colorPrimary">#3E0E2F</item>
<item name="android:windowAllowReturnTransitionOverlap">true</item>
<item name="android:windowAllowEnterTransitionOverlap">true</item>
</style>
<style name="Theme.Main.DialogPreferenceStyle" parent="@*android:style/Preference.DeviceDefault.DialogPreference">