Commit Graph

215 Commits

Author SHA1 Message Date
Philipp Unger
e1459fbe57 convert about tab to adw preferences page 2022-04-28 21:06:07 +02:00
Philipp Unger
35412af216 convert action tab to adw preferences page 2022-04-28 21:06:07 +02:00
Philipp Unger
294bea9236 convert style tab to adw preferences page 2022-04-28 21:06:07 +02:00
Philipp Unger
c802a62f34 convert behavior tab to adw preferences page 2022-04-28 21:06:04 +02:00
Charles Gagnon
9e9d761342 gi.Adw is always defined in fillPreferencesWindow 2022-04-27 21:26:30 -04:00
Charles Gagnon
a0cfefb627 Stop 'Extension did not provide any UI' error
Fixes #1633
2022-04-19 18:24:50 -04:00
Charles Gagnon
e69b50601a Drop convenience functions 2022-04-18 11:57:05 -04:00
Charles Gagnon
830a766106 Merge pull request #1617 from HaselLoyance/master
Toggle for notification counter badge
2022-04-15 14:30:05 -04:00
Charles Gagnon
ee7c2ffce5 Fix settings export/import filechooser cancel action 2022-04-14 12:46:30 -04:00
Charles Gagnon
498dc3cc98 Start removing legacy code 2022-04-13 22:29:57 -04:00
HaselLoyance
8cb5db7c93 Toggle notification counter badge 2022-04-09 01:00:19 -05:00
Charles Gagnon
6675c60bcb Fix setting hotkeys prefix
fixes #1397
2022-04-07 22:20:43 -04:00
Charles Gagnon
af0d9af4a9 Use default gtk focus and fix setting keyboard shortcuts
fixes #1612
2022-04-07 22:06:28 -04:00
Charles Gagnon
6a9a13c506 Reuse same monitor as primary if not GS primary 2022-04-06 13:51:55 -04:00
Philipp Unger
6c97a8ed0d Fix change of panel thickness in prefs 2022-04-05 02:27:51 +02:00
Charles Gagnon
dd70324840 Drop imports.lang usage 2022-04-04 13:25:45 -04:00
Charles Gagnon
9ca0c6bda8 Fix settings import 2022-04-02 15:28:59 -04:00
Charles Gagnon
c1c30ce9fa Drop ES5 support 2022-04-01 23:02:47 -04:00
Philipp Unger
053483f44e use fillPreferencesWindow to create prefs window in gnome 42 2022-03-17 22:41:14 +01:00
Philipp Unger
dc4c8a4124 destroy show apps file chooser dialog when show apps dialog is closed 2021-07-14 22:06:39 +02:00
abakkk
7b2c7aa155 Make the preferences dialog resizable
Size the toplevel dialog instead of the notebook.
2021-06-26 17:49:02 +02:00
Jason DeRose
2b2a9d6a9b Fix color pickers not allowing color changes across settings 2021-06-15 23:26:11 -04:00
Philipp
3fb7bdb83b Format value callbacks, app icon animation options dialog layout (#1329)
* updated format-value callbacks to new format

* fixed app icon animation options dialog layout
2021-05-09 22:14:15 -04:00
Philipp
781c123d74 Fix merging errors for panel_size_scale_value_changed_cb (#1328)
* fix panel_size_scale_value_changed_cb

* fix panel_size_scale_value_changed_cb #2
2021-05-09 22:13:51 -04:00
Philipp
a4224f4acc Update to Gnome 40 (#1303)
* 1

* renamed ui.viewSelector to ui.searchController

* add arrowIcon null check

* add object null check

* add _showAppsButton null check

* fixed _workspacesDisplay

* removed shadow-type properties

* removed packing from ui

* renamed margin_left/right to margin_start/end

* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position

* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)

* removed events, relief

* comment arrowIcon.set_icon_name and _hbox.get_last_child out

* called gtk4-builder-tool simplify --3to4 on Settings.ui

* fix _workspaceDisplay

* revert Settings.ui back to old gtk3 version

* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid

* add try catch aroung object.connect

* fixed _searchEntry path

* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now

* fixed _searchEntry path (this time for real?)

* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)

* updated GtkGrid.attach calls

* added Gtk.FileChooserNative for show_applications_icon_file_filebutton

* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan

* renamed colspan/rowspan to column-span/row-span

* removed all packaing left_attach/top_attach

* updated adjustScrollableHeight so the dialog will have a reasonable size again

* limit shell-version to 40 since it is not backwards compatible right now

* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?

* pass Settings instead of Settings._settings to BuilderScope

* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)

* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly

* moved the scrolled window directly into each notebook tab, so the tab headers are always visible

* fixed taskbarListBox children loops

* commented non working elements out (panel on left/right, import/export settings, update)

* renamed Settings to Preferences to avoid confusion with dconf settings object

* updated this.widget to this.notebook

* fixed dialogs size and expand

* fixed window preview options having too many columns

* removed all packing with expand/fill/position (already uncommented)

* removed menu arrows since they are no longer recommended for gnome40

* removed adjustScrollableHeight, default sizes are acceptable

* updated ui required version to gtk 4.0

* updated path to dash.showAppsButton

* fixes for showAppsButton

* fixed clickToExit

* fixed import/export settings

* added disable show overview on startup option

* removed old show apps animation

* fixed panel on left/right side

* fixed scroll on volume icon

no longer will scrolling on the volume icon switch workspaces as well

* commented some setFocusedMonitor support out, caused issues on Xorg

* removed oldDash

* updated hide overview on startup, no longer closes overview after suspend etc

* removed _newOverviewRelayout

* removed _newUpdateWorkspacesViews

* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now

* fixed typo

* fixed merging error

* check if func is valid in hookVfunc

* updated ui to gtk4, fixed merging error

* fixed layout for apply changes to all monitors

* fix behaviour tab and app icon margin/padding grid

* fix animate launching new windows grid row

* fixed about tab

Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 09:07:25 -04:00
Jason DeRose
58fa6edd92 Remove new version checker 2021-05-03 09:46:24 -04:00
Jason DeRose
d1dab2919b Merge branch 'appicon-raising' of https://github.com/abakkk/dash-to-panel into abakkk-appicon-raising 2021-05-02 12:54:39 -04:00
abakkk
8796899526 Add animate-appicon-hover settings
Each animation type has its own duration, rotation, travel and zoom settings.
Each multi-icon animation has its own convexity and extent settings.
It is achieved by using "{ type: value, ... }" dictionaries.
2021-02-20 13:46:29 +01:00
MarkS
a57058661a Configure panel thickness, length, and anchor per-monitor
Settings.ui:
- Move thickness, length, and anchor from Style tab to Position tab.
Group together with position in the same frame.

schema:
- Remove unpublished panel-length and panel-anchor settings, replacing
them with panel-lengths and panel-anchors JSON objects (like
panel-positions).
- Remove unpublished anchor enum, since panel-anchors is being managed
by the extension in JSON, not typed by the schema.
- Deprecate panel-size in favour of new panel-sizes JSON, storing
per-monitor panel sizes.
- Mention that panel-position is deprecated.

Introduce panelSettings.js:
- Functions to fetch or set panel settings that are stored as JSON.
Grown from now-removed getSettingsPositions() in panelPositions.js.

prefs.js:
- Group together the different UI widget label and value refreshing
into method _updateWidgetSettingsForMonitor().
- Change multi-panel behaviour of _setAnchorLabels(). Previously, all
panels shared the same anchor setting, and so setAnchorLabels
considered all monitors. Now, panels are configured either
independently, or sometimes all together; set labels according to
orientation(s) of panel(s) being configured.
- Omitting preventTop handling in refactored _setPanelPosition()
method. Previously, it was written to set the first monitor's panel to
Pos.BOTTOM if the user clicked the Top position radio button, if
stockgs-keep-top-panel was also set. But the user can't activate the
Top button anyway if stockgs is set (likely implemented later).

panelManager.js:
- Removing panelPositions, as it is not needed any more.
2020-10-27 20:38:37 -06:00
MarkS
29c107041b Merge branch 'master' 2020-10-25 13:24:33 -06:00
Jason DeRose
acbebc6762 Merge pull request #1101 from hlechner/show-desktop-color
add option to change Show Desktop Button line color
2020-08-07 08:10:33 -04:00
MarkS
bbd3a20fe5 Move length and anchor to Styles tab
* Moved length and anchor setting to Styles tab, as it is
  an all-monitor setting currently.
* Changed length from spinbox to slider, and shortened label.
* Turned off anchor combobox sensitivity if length is 100%.
* Set anchor labels to the more intuitive "Left, Center, Right" and
  "Top, Middle, Bottom" if all monitor panels are horizontal or
  vertical. If monitors have panels in a mix of orientations, use
  "Start, Middle, End". The schema retains the generic START, MIDDLE,
  END.
* Changed "Panel Size" label to "Panel thickness" to more precisely
  describe what is being set now that the panel can be changed in two
  dimensions. "Panel thickness" and "Panel length" can
  describe the sizing of the panel for either horizontal or vertical
  orientations.
* Changed now-shortened Position label to "Anchor", to reduce
  confusion with other Position setting, regarding which edge of the
  screen.
2020-08-03 20:47:22 -06:00
Jason DeRose
960d83be35 Merge branch 'overview-click-exit' 2020-08-02 17:53:39 -04:00
Jason DeRose
01807c168d finish overview click-to-exit feature 2020-08-02 17:52:57 -04:00
Henrique Lechner
a8427d8f14 Merge branch 'master' into show-desktop-color 2020-08-02 14:02:49 -03:00
Charles Gagnon
5259920072 Disable preview icon size in settings dialog when no header 2020-08-02 11:02:28 -04:00
MarkS
0a066890cb Display panel along percent of screen edge
Set the length of the panel according to a specified percent value, so
it can span only part of the screen edge.

Position the panel at the start, middle, or end of the screen edge, as
specified.

Tests okay with multiple monitors.

May also satisfy home-sweet-gnome/dash-to-panel#726
2020-07-31 16:06:49 -06:00
hlechner
cfab668d6c add option to change Show Desktop line color 2020-07-26 18:57:11 -03:00
hlechner
afdb43fcb7 add option to change the preview window icon size 2020-07-25 11:36:56 -03:00
Jason DeRose
3fc2df361f Merge pull request #1037 from l3nn4rt/scroll-panel-ws-popup-toggle
Toggle workspace switch popup
2020-07-09 22:30:06 -04:00
Charles Gagnon
c2f7797642 Add settings to handle per panel positioning 2020-06-14 15:28:49 -04:00
Charles Gagnon
20f66a5a5f Use per panel positioning 2020-06-13 09:26:40 -04:00
l3nn4rt
bb030020e4 Bind scroll-panel-show-ws-popup to settings 2020-06-13 14:32:44 +02:00
Charles Gagnon
53672002f1 Merge branch 'master' into feature-panel-positions 2020-05-17 13:17:25 -04:00
Charles Gagnon
f907ccca4a Add setting to sync positions on every monitor 2020-05-17 09:42:07 -04:00
Milos Levacic
f5d022ebee Configurable minimized application title font color 2020-05-17 01:22:11 +02:00
Charles Gagnon
705b39fc74 Update saved monitors on display configuration change 2020-05-13 20:49:59 -04:00
Charles Gagnon
e79d0da8c9 Add new panel positioning options 2020-05-12 19:00:51 -04:00
Charles Gagnon
0dd48e0068 Flatten multi-monitor options 2020-05-04 19:39:17 -04:00
Charles Gagnon
0013f5154f Add option to keep gnome-shell top panel 2020-05-02 12:57:21 -04:00