Skip to content

Commit ce2b376

Browse files
committed
Appearance: Support Latte
1 parent 6171ddb commit ce2b376

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/Views/Appearance.vala

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ public class PantheonShell.Appearance : Switchboard.SettingsPage {
3030
PURPLE,
3131
PINK,
3232
BROWN,
33-
GRAY;
33+
GRAY,
34+
LATTE;
3435

3536
public string to_string () {
3637
switch (this) {
@@ -54,6 +55,8 @@ public class PantheonShell.Appearance : Switchboard.SettingsPage {
5455
return "cocoa";
5556
case GRAY:
5657
return "slate";
58+
case LATTE:
59+
return "latte";
5760
default:
5861
return "auto";
5962
}
@@ -246,6 +249,9 @@ public class PantheonShell.Appearance : Switchboard.SettingsPage {
246249
var slate_button = new PrefersAccentColorButton (AccentColor.GRAY, blueberry_button);
247250
slate_button.tooltip_text = _("Slate");
248251

252+
var latte_button = new PrefersAccentColorButton (AccentColor.LATTE, blueberry_button);
253+
latte_button.tooltip_text = _("Latte");
254+
249255
var auto_button = new PrefersAccentColorButton (AccentColor.NO_PREFERENCE, blueberry_button);
250256
auto_button.tooltip_text = _("Automatic based on wallpaper");
251257

@@ -262,6 +268,7 @@ public class PantheonShell.Appearance : Switchboard.SettingsPage {
262268
accent_box.append (grape_button);
263269
accent_box.append (cocoa_button);
264270
accent_box.append (slate_button);
271+
accent_box.append (latte_button);
265272
accent_box.append (auto_button);
266273

267274
var accent_label = new Granite.HeaderLabel (_("Accent Color")) {

0 commit comments

Comments
 (0)