Commit Graph

229 Commits

Author SHA1 Message Date
Andy Holmes
f68e860d43 refactor: remove unused imports 2023-09-21 19:22:28 -07:00
Andy Holmes
93f1777878 fix: use St.PolicyType in the shell process 2023-09-21 19:22:25 -07:00
Andy Holmes
fd8022b49b refactor: replace export var with export const 2023-09-21 19:22:24 -07:00
Philipp Unger
880156b953 fix getAppFromSource 2023-09-20 19:43:10 +02:00
Philipp Unger
c3db082e5b use getAppFromSource from Dash again 2023-09-07 01:11:25 +02:00
Philipp Unger
a3fc2fd0de use Clutter.ActorAlign instead of St.Align 2023-09-04 22:17:43 +02:00
Philipp Unger
c4c114d921 copy getAppFromSource into taskbar.js since it is not exported yet 2023-08-28 16:56:11 +02:00
Philipp Unger
0418059f61 use SearchController from Main.overview to fix show apps button 2023-08-20 20:22:15 +02:00
Philipp Unger
d4a2eb219f export missing variables 2023-08-20 02:15:20 +02:00
Philipp Unger
517d7d2e75 modify Signals import and use addSignalMethods again 2023-08-19 13:48:43 +02:00
Philipp Unger
03a0aee77c remove the remaining non ESM imports 2023-08-19 13:48:38 +02:00
Philipp Unger
59bc598566 export classes and functions from taskbar.js 2023-08-19 13:48:38 +02:00
Philipp Unger
39137bde15 fix SearchController import 2023-08-19 13:48:38 +02:00
Philipp Unger
84159f5df9 use exported settings 2023-08-19 13:48:38 +02:00
Philipp Unger
3cec4d7135 comment Signals.addSignalMethods for now 2023-08-19 13:48:38 +02:00
Philipp Unger
1dbad460e4 revert Signals import back 2023-08-19 13:48:38 +02:00
Philipp Unger
bc60959709 move all imports to the top 2023-08-19 13:48:38 +02:00
Philipp Unger
9c12d7908c migrate signals imports to new ESM format 2023-08-19 13:48:38 +02:00
Philipp Unger
b87ac15d66 migrate gi, ui and Me imports to new ESM format 2023-08-19 13:48:38 +02:00
Charles Gagnon
ed8a22dda2 Unredirect panel when intellihide is enabled 2023-02-10 07:10:04 -05:00
Charles Gagnon
f5a4273ca9 Adjust hotkeys when apps can be splitted
#1798
2022-11-16 09:19:23 -05:00
Charles Gagnon
c6cf180eb3 Fix grouped apps split
Fixes #1737
2022-08-27 08:38:11 -04:00
Charles Gagnon
421dbb825a Fix show running apps 2022-04-22 08:58:27 -04:00
Charles Gagnon
2b30561a44 Fix proximity detection with DING wayland window 2022-04-19 09:31:37 -04:00
Charles Gagnon
feb1a0fdfe Clear timeouts 2022-04-18 11:49:22 -04:00
Charles Gagnon
68b2be37fc Fix right click headerbar toggles overview on 41.5
fixes #1629
2022-04-16 22:49:58 -04:00
Charles Gagnon
498dc3cc98 Start removing legacy code 2022-04-13 22:29:57 -04:00
Charles Gagnon
d5ee1362cb Allow separation of apps on panels not showing favorites 2022-04-12 22:30:48 -04:00
Charles Gagnon
ebeba208b5 Revert to fixed label size, but don't alter during alloc
Fix jumpy ungrouped app icons
2022-04-11 12:14:16 -04:00
Charles Gagnon
00e88199a2 Allow separation of application if using launchers
fixes #676
2022-04-10 16:50:58 -04:00
Charles Gagnon
79f54a6fba Fix appicon label needs an allocation warnings 2022-04-08 12:30:57 -04:00
Charles Gagnon
5203e59713 Include intellihide translation in appicon hover animations 2022-04-05 13:30:54 -04:00
Charles Gagnon
dd70324840 Drop imports.lang usage 2022-04-04 13:25:45 -04:00
Charles Gagnon
5c9a29e7ed Adjust intellihide grab check for GS 42 2022-04-04 12:08:21 -04:00
Charles Gagnon
c1c30ce9fa Drop ES5 support 2022-04-01 23:02:47 -04:00
Philipp Unger
0148daa49e remove some spring animation code, no longer available in gnome 42 and not used since gnome 40 2022-03-23 13:45:18 +01:00
Philipp Unger
b7c6780320 added patches from crab2313 2022-03-16 20:25:30 +01:00
Jason DeRose
e1858d3162 Cleanup module export warnings 2021-06-08 22:30: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
6a76c9e914 TaskbarItemContainer use custom allocation #1318 2021-05-04 10:03:35 -04:00
Jason DeRose
7d9bd1d743 Merge branch 'master' into hide-on-dnd 2021-05-02 20:30:04 -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
Jason DeRose
01ce67fe50 Merge branch 'master' into master 2021-05-02 07:44:40 -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
abakkk
f35717a2c3 Implement animate-appicon-hover settings
The taskbar controls the animations by listening:
* appIcon 'notify::hover' and 'menu-state-changed' signals.
* scrollView 'motion-event' and 'leave-event' signals (ripple and plank animations).

The animations are processed in a new TaskbarItemContainer (that extends DashItemContainer).
Vertical animations are done with a Clutter clone because the appIcon actor cannot go outside the taskbar.
Horizontal animations (plank) are directly applied to the taskbarItemContainer.

AppIcon._onAnimateAppiconHoverChanged removes icon backgrounds when animations are enabled. It also increases the size of the icon texture in order to prevent it from being ugly when it is scaled.
2021-02-20 13:47:55 +01:00
Charles Gagnon
ec13897509 Only use showing overview signal on g-s > 3.38.1 2021-01-02 18:03:28 -05:00
Charles Gagnon
5c502bcfd1 Force appicons update on drag end 2020-12-31 12:38:59 -05:00
Charles Gagnon
180b436ea1 Fix 3.38 'needs an allocation' warning 2020-12-30 08:06:31 -05:00
Charles Gagnon
270cb89f95 Fix 3.38.2 spring animation 2020-12-29 22:11:18 -05:00
Artyom Zorin
f1aa64cb0d Animate app icons when urgent property is set 2020-12-18 23:42:26 +00:00