diff --git a/data/Launcher.css b/data/Launcher.css index 51be165f..9094363b 100644 --- a/data/Launcher.css +++ b/data/Launcher.css @@ -7,10 +7,6 @@ launcher { padding: 6px; } -launcher image { - -gtk-icon-size: 48px; -} - .bounce { animation: bounce 200ms cubic-bezier(0.4, 0, 0.2, 1) infinite; animation-direction: alternate; diff --git a/data/dock.gschema.xml b/data/dock.gschema.xml index c9c8bfb7..1daaff54 100644 --- a/data/dock.gschema.xml +++ b/data/dock.gschema.xml @@ -1,6 +1,12 @@ + + 48 + Logical pixel size of app launcher icons + Logical pixel size of app launcher icons + + ['gala-multitaskingview.desktop', 'org.gnome.Epiphany.desktop', 'io.elementary.mail.desktop', 'io.elementary.tasks.desktop', 'io.elementary.calendar.desktop', 'io.elementary.music.desktop', 'io.elementary.videos.desktop', 'io.elementary.photos.desktop', 'io.elementary.switchboard.desktop', 'io.elementary.appcenter.desktop'] An ordered array of app id's to show as launchers diff --git a/src/Launcher.vala b/src/Launcher.vala index 351429c8..b6c6fe79 100644 --- a/src/Launcher.vala +++ b/src/Launcher.vala @@ -13,6 +13,7 @@ public class Dock.Launcher : Gtk.Button { public GLib.List windows { get; private owned set; } + private static Settings settings; private static Gtk.CssProvider css_provider; private Gtk.Image image; @@ -34,6 +35,8 @@ public class Dock.Launcher : Gtk.Button { static construct { css_provider = new Gtk.CssProvider (); css_provider.load_from_resource ("/io/elementary/dock/Launcher.css"); + + settings = new Settings ("io.elementary.dock"); } construct { @@ -103,6 +106,8 @@ public class Dock.Launcher : Gtk.Button { gesture_click.released.connect (popover.popup); clicked.connect (() => launch ()); + + settings.bind ("icon-size", image, "pixel-size", DEFAULT); } ~Launcher () {