Commit Graph

78 Commits

Author SHA1 Message Date
Charles Gagnon
6813dd62a0 Adjust Desktop Icons NG 2022-04-24 09:48:57 -04:00
Charles Gagnon
3fab04a402 Always restore visibility on window opacity animation
fixes #1642
2022-04-23 15:42:35 -04:00
Charles Gagnon
498dc3cc98 Start removing legacy code 2022-04-13 22:29:57 -04:00
Charles Gagnon
709bfb947e Change scrolling windows direction fixes #1167 2022-04-09 14:22:04 -04:00
Charles Gagnon
cc7c6f6916 Prevent the chrome to reveal panelbox in overview 2022-04-09 13:05:25 -04:00
Charles Gagnon
dab9820132 Rely on overview allocation, enough with the ghosts 2022-04-09 12:03:46 -04:00
Charles Gagnon
1cfffb4865 Include secondary monitors in click empty to close overview 2022-04-06 23:17:38 -04:00
Charles Gagnon
d6132b042c Do not try to search undefined array 2022-04-03 11:40:22 -04:00
Charles Gagnon
f6fecbc5e5 Restore opacity peeking window different workspace 2022-04-02 10:57:01 -04:00
Charles Gagnon
c1c30ce9fa Drop ES5 support 2022-04-01 23:02:47 -04:00
Philipp Unger
636c0a4399 use try catch instead of PACKAGE_VERSION for hook_up_vfunc_symbol 2022-03-25 12:23:59 +01:00
Philipp Unger
3065323788 make backwards compatible to gnome 41 again 2022-03-16 20:45:54 +01:00
Philipp Unger
b7c6780320 added patches from crab2313 2022-03-16 20:25:30 +01:00
Philipp Unger
24b72fac69 inherit from GObject if needed in Utils.defineClass 2022-03-08 23:35:28 +01:00
Adrian Perez de Castro
7862d78c18 Use .get_names() only on Gio.ThemedIcon instances
The .get_names() method only exists for Gio.ThemedIcon instances. This
avoids spamming the journal with errors like the following:

JS ERROR: TypeError: iconTexture.get_names is not a function
_getIconPixBuf@/home/aperez/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/utils.js:846:61
_getColorPalette@/home/aperez/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/utils.js:865:27
_getFocusHighlightColor@/home/aperez/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/appIcons.js:1089:31
_setIconStyle@/home/aperez/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/appIcons.js:606:39
_displayProperIndicator@/home/aperez/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/appIcons.js:703:14
_onSwitchWorkspace/<@/home/aperez/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/appIcons.js:692:58
_create/this[name]<@/home/aperez/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/utils.js:250:13
2021-07-27 23:47:16 +03: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
5ab9b8219a Merge pull request #1114 from marksvc/panel-length
Display panel along percent of screen edge
2021-05-02 06:58:13 -04:00
Charles Gagnon
7411e91ee9 Always restore window opacity for 3.36 mutter bug 2020-12-29 19:41:26 -05: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
Charles Gagnon
eff0b19203 Fix missing box allocations on 3.38 2020-08-27 21:10:15 -04:00
Charles Gagnon
094e70325b Add initial 3.38 adjustments 2020-08-22 10:18:31 -04:00
Charles Gagnon
82880fd633 Move utilitarian brightness function 2020-08-02 10:49:43 -04:00
Charles Gagnon
4a6f27ac7b Add array find for older gnome-shell versions 2020-06-14 19:20:23 -04:00
Charles Gagnon
6eaab5ada0 Adjust latest for larger scale factors 2020-05-03 21:27:40 -04:00
Charles Gagnon
36e0600df5 Animate only peeked window workspace 2020-04-30 00:30:52 -04:00
Charles Gagnon
468b53565d Fix window peek issue on 3.36.1 2020-04-29 17:36:52 -04:00
Charles Gagnon
58dd623008 Use milliseconds for Clutter animation delay 2020-04-26 17:01:44 -04:00
Charles Gagnon
5ed3ef5a0b Fix animation api breaking change for St.Adjustment 2020-04-26 11:37:01 -04:00
Charles Gagnon
00ef45165e Fix catch syntax for older gnome-shell versions 2020-04-24 09:54:05 -04:00
Tom Perez
11868062d8 Merge remote-tracking branch 'upstream/master' 2020-04-19 21:30:17 -07:00
Tom Perez
20ebb623b8 Incorporating feedback to address gsettings localization issues. 2020-04-19 21:14:04 -07:00
Charles Gagnon
46b65faf71 Use Clutter implicit animations if available 2020-04-19 12:13:09 -04:00
Tom Perez
8200a481ea Handling the case where sh is not available and allowing an empty menu 2020-04-17 16:40:16 -07:00
Tom Perez
ce32b43310 Caching results of checkIfCommandExists to speed up menu display. 2020-04-17 16:26:04 -07:00
Tom Perez
059a56259c Switch to POSIX "command" for more availability 2020-04-17 01:15:35 -07:00
Tom Perez
536e994257 Moving check to utils and removing unused variables 2020-04-13 11:43:37 -07:00
Charles Gagnon
fcd41e604d Use new showNotification method 2020-04-05 12:03:31 -04:00
CharlesG
b4601dbea2 Fix 3.36 peek on wayland 2020-04-03 10:25:29 -04:00
Charles Gagnon
0385ff2f40 Fix 3.34 visible target 2020-04-02 17:27:53 -04:00
Charles Gagnon
816b832ff5 Do not animate window opacity on 3.34 specifically 2020-04-02 14:57:17 -04:00
Charles Gagnon
1e16ba2713 Continue using windowactor for the fade on g-s < 3.34 2020-04-02 13:39:19 -04:00
Charles Gagnon
596926c21c Animate windowactor's child opacity 2020-04-02 12:52:36 -04:00
CharlesG
7fcf299e83 Use default gnome-shell icon size in overview 2020-03-10 13:23:06 -04:00
Charles Gagnon
7763f96579 Adjust for gnome-shell 3.35.90 2020-02-15 14:06:56 -05:00
Jason DeRose
bf213af4c2 Initial implementation of dbus progress and badge counts 2020-02-03 08:46:39 -05:00
Charles Gagnon
ed3c3e072e Adjust for gnome-shell 3.35.2 breaking changes 2019-12-16 22:10:05 -05:00
Charles Gagnon
d5951b583e Add temporary workaround for window peek on 3.34 2019-11-16 09:06:45 -05:00
Charles Gagnon
8f7ce412ef Disable vfunc hook on gjs < 1.53.4 2019-11-08 21:16:46 -05:00
Charles Gagnon
1290f8664a Fix scroll animation time on 3.34 2019-10-12 08:29:14 -04:00
Charles Gagnon
ea434b70b0 Add settings to allow version updates 2019-08-29 22:52:41 -04:00