diff --git a/Settings.ui b/Settings.ui index 562890d..fb17bb6 100644 --- a/Settings.ui +++ b/Settings.ui @@ -246,12 +246,24 @@ 1 5 + + 0.33000000000000002 + 1 + 0.01 + 0.10000000000000001 + 0.33000000000000002 1 0.01 0.10000000000000001 + + 0.33000000000000002 + 1 + 0.01 + 0.10000000000000001 + True True @@ -259,7 +271,6 @@ 6 6 6 - False True @@ -389,7 +400,6 @@ 100 - 80 True True @@ -506,24 +516,6 @@ 1 0 - 2 - - - - - True - False - True - If disabled, these settings are acccessible from gnome-tweak-tool or the extension website. - True - 0 - - - - 0 - 1 @@ -540,22 +532,6 @@ 0 - - - Move the applications button at the beginning of the panel. - True - True - False - 12 - 0 - True - - - 0 - 2 - 2 - - True @@ -563,7 +539,7 @@ False 3 0 - 0.43000000715255737 + 0.5 True @@ -576,10 +552,12 @@ 0 - 3 - 2 + 1 + + + @@ -601,7 +579,6 @@ - True False 0 in @@ -742,10 +719,131 @@ - + + True + False + 24 + 24 + 24 + 24 + vertical + 24 + + + True + False + 0 + in + + + True + True + none + + + 100 + True + True + + + True + False + 12 + 12 + 32 + 32 + + + True + False + Tray Content Size +(0 = default) + 0 + + + 0 + 0 + + + + + True + True + baseline + True + tray_size_adjustment + 0 + 0 + right + + + 1 + 0 + + + + + True + False + Left Content Size +(0 = default) + 0 + + + 0 + 1 + + + + + True + True + baseline + True + leftbox_size_adjustment + 0 + 0 + right + + + 1 + 1 + + + + + + + + + + + + + + False + True + 0 + + + + + + + + 2 + - + + True + False + Appearance + + + 2 + False + diff --git a/po/onebar.pot b/po/onebar.pot new file mode 100644 index 0000000..375218e --- /dev/null +++ b/po/onebar.pot @@ -0,0 +1,126 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-22 18:05-0500\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#: prefs.js:127 +msgid "Customize middle-click behavior" +msgstr "" + +#: prefs.js:134 +msgid "Reset to defaults" +msgstr "" + +#: Settings.ui.h:1 +msgid "" +"When set to minimize, double clicking minimizes all the windows of the " +"application." +msgstr "" + +#: Settings.ui.h:2 +msgid "Shift+Click action" +msgstr "" + +#: Settings.ui.h:3 +msgid "Raise window" +msgstr "" + +#: Settings.ui.h:4 +msgid "Minimize window" +msgstr "" + +#: Settings.ui.h:5 +msgid "Launch new instance" +msgstr "" + +#: Settings.ui.h:6 +msgid "Cycle through windows" +msgstr "" + +#: Settings.ui.h:7 +msgid "Quit" +msgstr "" + +#: Settings.ui.h:8 +msgid "Behavior for Middle-Click." +msgstr "" + +#: Settings.ui.h:9 +msgid "Middle-Click action" +msgstr "" + +#: Settings.ui.h:10 +msgid "Behavior for Shift+Middle-Click." +msgstr "" + +#: Settings.ui.h:11 +msgid "Shift+Middle-Click action" +msgstr "" + +#: Settings.ui.h:12 +msgid "Position on screen" +msgstr "" + +#: Settings.ui.h:13 +msgid "Bottom" +msgstr "" + +#: Settings.ui.h:14 +msgid "Top" +msgstr "" + +#: Settings.ui.h:15 +msgid "Panel Size" +msgstr "" + +#: Settings.ui.h:16 +msgid "Position and size" +msgstr "" + +#: Settings.ui.h:17 +msgid "" +"If disabled, these settings are acccessible from gnome-tweak-tool or the " +"extension website." +msgstr "" + +#: Settings.ui.h:18 +msgid "Show Applications icon" +msgstr "" + +#: Settings.ui.h:19 +msgid "Move the applications button at the beginning of the panel." +msgstr "" + +#: Settings.ui.h:20 +msgid "Animate Show Applications." +msgstr "" + +#: Settings.ui.h:21 +msgid "Behaviour when clicking on the icon of a running application." +msgstr "" + +#: Settings.ui.h:22 +msgid "Click action" +msgstr "" + +#: Settings.ui.h:23 +msgid "Minimize" +msgstr "" + +#: Settings.ui.h:24 +msgid "Behavior" +msgstr "" diff --git a/prefs.js b/prefs.js index 026b1a4..b155c6a 100644 --- a/prefs.js +++ b/prefs.js @@ -37,6 +37,7 @@ const Convenience = Me.imports.convenience; const SCALE_UPDATE_TIMEOUT = 500; const DEFAULT_PANEL_SIZES = [ 128, 96, 64, 48, 32, 24, 16 ]; +const DEFAULT_FONT_SIZES = [ 96, 64, 48, 32, 24, 16, 0 ]; const Settings = new Lang.Class({ Name: 'TaskBar.Settings', @@ -108,14 +109,6 @@ const Settings = new Lang.Class({ this._builder.get_object('show_applications_button_switch'), 'active', Gio.SettingsBindFlags.DEFAULT); - this._settings.bind('show-apps-at-top', - this._builder.get_object('application_button_first_button'), - 'active', - Gio.SettingsBindFlags.DEFAULT); - this._settings.bind('show-show-apps-button', - this._builder.get_object('application_button_first_button'), - 'sensitive', - Gio.SettingsBindFlags.DEFAULT); this._settings.bind('animate-show-apps', this._builder.get_object('application_button_animation_button'), 'active', @@ -197,6 +190,33 @@ const Settings = new Lang.Class({ })); + // Appearance panel + + let sizeScales = [ + {objectName: 'tray_size_scale', valueName: 'tray-size'}, + {objectName: 'leftbox_size_scale', valueName: 'leftbox-size'} + ]; + + for(var idx in sizeScales) { + let size_scale = this._builder.get_object(sizeScales[idx].objectName); + size_scale.set_range(DEFAULT_FONT_SIZES[DEFAULT_FONT_SIZES.length-1], DEFAULT_FONT_SIZES[0]); + size_scale.set_value(this._settings.get_int(sizeScales[idx].valueName)); + DEFAULT_FONT_SIZES.slice(1, -1).forEach(function(val) { + size_scale.add_mark(val, Gtk.PositionType.TOP, val.toString()); + }); + + // Corrent for rtl languages + if (this._rtl) { + // Flip value position: this is not done automatically + size_scale.set_value_pos(Gtk.PositionType.LEFT); + // I suppose due to a bug, having a more than one mark and one above a value of 100 + // makes the rendering of the marks wrong in rtl. This doesn't happen setting the scale as not flippable + // and then manually inverting it + size_scale.set_flippable(false); + size_scale.set_inverted(true); + } + } + }, /** diff --git a/schemas/org.gnome.shell.extensions.dash-to-panel.gschema.xml b/schemas/org.gnome.shell.extensions.dash-to-panel.gschema.xml index ec50c8e..55cc7bf 100644 --- a/schemas/org.gnome.shell.extensions.dash-to-panel.gschema.xml +++ b/schemas/org.gnome.shell.extensions.dash-to-panel.gschema.xml @@ -29,11 +29,6 @@ Show applications button Show appplications button in the dash - - false - Show application button at top - Show appplication button at top of the dash - true Animate Show Applications from the desktop @@ -72,5 +67,15 @@ Action when clicking on a running app Set the action that is executed when shift+middle-clicking on the icon of a running application + + 0 + Tray content size + Set the size of the tray items. (0 for default) + + + 0 + Left content size + Set the size of the leftBox items. (0 for default) +