Commit Graph

130 Commits

Author SHA1 Message Date
Charles Gagnon
12e474f690 Restore appgrid drag animations, old stuff cleanup 2022-04-06 14:56:51 -04:00
Charles Gagnon
6a9a13c506 Reuse same monitor as primary if not GS primary 2022-04-06 13:51:55 -04:00
Charles Gagnon
669781996b Persist primary monitor settings on monitors change 2022-04-06 11:24:55 -04:00
Charles Gagnon
774403f7b7 Fix some more classic GJS/GS weirdness 2022-04-05 18:22:13 -04:00
Charles Gagnon
aa14940705 Drop relayout as the cover pane now uses whole stage 2022-04-05 17:58:47 -04:00
Charles Gagnon
dd70324840 Drop imports.lang usage 2022-04-04 13:25:45 -04:00
Charles Gagnon
55774fb229 Restore opening overview on secondary monitors 2022-04-02 13:17:05 -04:00
Charles Gagnon
c1c30ce9fa Drop ES5 support 2022-04-01 23:02:47 -04:00
Philipp Unger
b7c6780320 added patches from crab2313 2022-03-16 20:25:30 +01:00
Jason DeRose
6e50948a8f Allow panel style override property to be deleted on disable 2021-06-19 19:56:03 -04:00
Jason DeRose
35081df201 Override style setter for main panel to keep GS from blowing away styles #1333 2021-06-18 22:47:30 -04:00
Kyrill Zorin
39617455d8 Fix panel disappearing after screen unlock 2021-06-08 22:34:35 -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
1e46333210 syntax fixes for older GS versions 2021-05-04 21:11:36 -04:00
Jason DeRose
6a76c9e914 TaskbarItemContainer use custom allocation #1318 2021-05-04 10:03:35 -04:00
Jason DeRose
01ce67fe50 Merge branch 'master' into master 2021-05-02 07:44:40 -04:00
Artyom Zorin
39c311cc70 Do not animate disposed icons 2021-04-06 13:22:08 +01:00
Artyom Zorin
f1aa64cb0d Animate app icons when urgent property is set 2020-12-18 23:42:26 +00: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
Charles Gagnon
283be383bd Fix syntax for older gnome-shell versions 2020-10-06 10:08:14 -04:00
Charles Gagnon
094e70325b Add initial 3.38 adjustments 2020-08-22 10:18:31 -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
Charles Gagnon
737eacb0a6 Fix looking glass with per monitor panel top position 2020-07-13 17:34:03 -04:00
Charles Gagnon
ed00ae61ba Use available function on workspaces update 2020-07-12 08:54:07 -04:00
Charles Gagnon
eff0322dc1 Fix overview on 3.36.4 2020-07-07 21:30:11 -04:00
Charles Gagnon
8fffe0edbb Resume hot corner creation on empty monitor 2020-07-07 07:34:07 -04:00
Charles Gagnon
e7b0b58234 Fix hot corner creation on monitor without panel 2020-07-06 17:37:09 -04:00
Charles Gagnon
4a6f27ac7b Add array find for older gnome-shell versions 2020-06-14 19:20:23 -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
Charles Gagnon
20e9964689 Fix initial workspace windows zoom animation in overview 2020-05-28 21:21:37 -04: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
08a46105fc Adjust flat-remix when keeping stock gnome-shell top panel 2020-05-02 19:10:57 -04:00
Charles Gagnon
0013f5154f Add option to keep gnome-shell top panel 2020-05-02 12:57:21 -04:00
Charles Gagnon
d878987d48 Add option to override escape key for Show Applications 2020-05-01 17:40:55 -04:00
Charles Gagnon
2330d6772d Fix extra comma for gnome-shell 3.18 2020-04-25 00:32:23 -04:00
Charles Gagnon
fb66d56acd Fix 3.36 icon grid allocation on window monitor change 2020-04-21 19:17:24 -04:00
Charles Gagnon
3c294ec3e2 Fix 3.36 grid icon positions 2020-04-07 17:04:03 -04:00
Charles Gagnon
d2b4718c3e Reset clip on panel size change 2020-04-05 11:57:58 -04:00
Charles Gagnon
334d130b70 Use panel dimensions for clipping container 2020-04-05 10:58:12 -04:00
Charles Gagnon
c99b07c4c9 Set clipping container on panel creation 2020-03-31 10:02:58 -04:00
Charles Gagnon
f29525f2f0 Fix lookingGlass warnings on 3.35.91 2020-02-20 08:50:01 -05:00
Charles Gagnon
7763f96579 Adjust for gnome-shell 3.35.90 2020-02-15 14:06:56 -05:00
Charles Gagnon
d3f36ccbcd Add option forcing hot corner on primary monitor 2020-01-14 17:58:53 -05:00
Charles Gagnon
234dec0558 Limit hotcorner size on panelbox allocation change 2020-01-05 18:32:58 -05:00
Charles Gagnon
3801452c7b Adjust main panel for older gnome-shell versions 2019-12-29 19:39:31 -05:00
Charles Gagnon
9dd4a021d1 Resume usage of main panel on primary monitor 2019-12-29 12:26:04 -05:00
Charles Gagnon
ed3c3e072e Adjust for gnome-shell 3.35.2 breaking changes 2019-12-16 22:10:05 -05:00