Cherish:Add 6 new QS Styles
Signed-off-by: rdx420 <padraramesh420@gmail.com> Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
@@ -238,6 +238,12 @@
|
||||
<item>@string/qs_outline</item>
|
||||
<item>@string/qs_two_tone</item>
|
||||
<item>@string/qs_color_pop</item>
|
||||
<item>@string/qs_shaded</item>
|
||||
<item>@string/qs_cyberpunk</item>
|
||||
<item>@string/qs_neumorph</item>
|
||||
<item>@string/qs_reflected</item>
|
||||
<item>@string/qs_surround</item>
|
||||
<item>@string/qs_thin</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="qs_styles_values" translatable="false">
|
||||
@@ -245,6 +251,12 @@
|
||||
<item>1</item>
|
||||
<item>2</item>
|
||||
<item>3</item>
|
||||
<item>4</item>
|
||||
<item>5</item>
|
||||
<item>6</item>
|
||||
<item>7</item>
|
||||
<item>8</item>
|
||||
<item>9</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Status bar - Clock -->
|
||||
|
||||
@@ -610,11 +610,16 @@
|
||||
<string name="enable_protection">Enable protection</string>
|
||||
|
||||
<!-- Quick settings styling -->
|
||||
<string name="qs_styling">Quick Settings UI</string>
|
||||
<string name="qs_styles_title">QS Panel Styles</string>
|
||||
<string name="qs_outline">QS Outline Style</string>
|
||||
<string name="qs_two_tone">QS Two-Tone Accent</string>
|
||||
<string name="qs_color_pop">QS Color Pop</string>
|
||||
<string name="qs_styles_title">Combined QS Element Styles</string>
|
||||
<string name="qs_outline">Outline</string>
|
||||
<string name="qs_two_tone">Two-Tone Accent</string>
|
||||
<string name="qs_color_pop">Color Pop</string>
|
||||
<string name="qs_shaded">Shaded</string>
|
||||
<string name="qs_cyberpunk">Cyberpunk</string>
|
||||
<string name="qs_neumorph">Neumorph</string>
|
||||
<string name="qs_reflected">Reflected</string>
|
||||
<string name="qs_surround">Surround</string>
|
||||
<string name="qs_thin">ThinLine</string>
|
||||
|
||||
<!-- QS tiles layout direction: vertical or horizontal -->
|
||||
<string name="qs_tile_layout_category_title">Tile layout</string>
|
||||
|
||||
@@ -201,6 +201,18 @@ public class ThemeSettings extends DashboardFragment implements OnPreferenceChan
|
||||
setQsStyle(mOverlayService, "com.android.system.qs.outline");
|
||||
} else if (qsPanelStyle == 2 || qsPanelStyle == 3) {
|
||||
setQsStyle(mOverlayService, "com.android.system.qs.twotoneaccent");
|
||||
} else if (qsPanelStyle == 4) {
|
||||
setQsStyle(mOverlayService, "com.android.system.qs.shaded");
|
||||
} else if (qsPanelStyle == 5) {
|
||||
setQsStyle(mOverlayService, "com.android.system.qs.cyberpunk");
|
||||
} else if (qsPanelStyle == 6) {
|
||||
setQsStyle(mOverlayService, "com.android.system.qs.neumorph");
|
||||
} else if (qsPanelStyle == 7) {
|
||||
setQsStyle(mOverlayService, "com.android.system.qs.reflected");
|
||||
} else if (qsPanelStyle == 8) {
|
||||
setQsStyle(mOverlayService, "com.android.system.qs.surround");
|
||||
} else if (qsPanelStyle == 9) {
|
||||
setQsStyle(mOverlayService, "com.android.system.qs.thin");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -233,7 +245,13 @@ public class ThemeSettings extends DashboardFragment implements OnPreferenceChan
|
||||
|
||||
public static final String[] QS_STYLES = {
|
||||
"com.android.system.qs.outline",
|
||||
"com.android.system.qs.twotoneaccent"
|
||||
"com.android.system.qs.twotoneaccent",
|
||||
"com.android.system.qs.shaded",
|
||||
"com.android.system.qs.cyberpunk",
|
||||
"com.android.system.qs.neumorph",
|
||||
"com.android.system.qs.reflected",
|
||||
"com.android.system.qs.surround",
|
||||
"com.android.system.qs.thin"
|
||||
};
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user