gnome-shell/js/ui
Sebastian Keller 18cd24e6f4 appDisplay: Fix app folder icon subicon spacing
The code previously was using CSS to define row/column spacing and
padding which was combined with a subicon size computed in code relative
to the requested icon size.

In smaller icon sizes it was possible for the CSS spacing+padding + the
size of the two subicons to exceed the requested icon size. This then
would lead to the label being pushed down for app folders compared to
other icons.

Another more severe issue caused by this would happen if the first item
in an icon grid was an app folder. Then the calculation for the maximum
allowed icon size could be off, leading to all icons in the grid
becoming smaller than actually necessary.

This commit changes this to use homogeneous row and column layouts to
evenly distribute the remaining spacing instead of using a fixed CSS
value.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3069

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1581>
2021-01-21 21:05:30 +00:00
..
components automountManager: Remove unused volume queue 2021-01-19 20:55:11 +00:00
status status/volume: Allow changing input volume by scrolling 2021-01-14 01:13:17 +01:00
accessDialog.js js: Don't use templates in files with translations 2020-02-17 23:20:40 +01:00
altTab.js cleanup: Use optional chaining and ?? operator 2020-12-02 15:10:29 +00:00
animation.js st/widget: Remove get_resource_scale function 2020-06-30 13:42:18 +00:00
appDisplay.js appDisplay: Fix app folder icon subicon spacing 2021-01-21 21:05:30 +00:00
appFavorites.js appFavorites: Add eog to rename list 2020-05-02 00:16:28 +02:00
audioDeviceSelection.js audioDeviceSelection: Center-align icons 2020-10-21 03:29:18 +02:00
background.js background: Mark pattern backgrounds as loaded 2020-07-30 11:48:13 +02:00
backgroundMenu.js
barLevel.js js: Listen to notify::allocation instead of allocation-changed 2020-05-20 15:12:36 +02:00
boxpointer.js util: Remove shell_util_get_transformed_allocation 2020-07-29 18:09:53 +02:00
calendar.js calendar: Vertically center align week numbers 2020-08-21 21:40:22 +03:00
checkBox.js checkbox: Improve accessibility of check boxes for Orca users 2020-03-29 12:56:33 +00:00
closeDialog.js closeDialog: Remove transitions before resetting dialog 2020-03-23 15:27:47 +00:00
ctrlAltTab.js
dash.js dash/dashIcon: Popup menu above the icon 2021-01-19 13:47:06 +00:00
dateMenu.js dateMenu: Fix temperature edge case 2020-12-22 09:27:45 +00:00
dialog.js cleanup: Remove empty leading/trailing lines in blocks 2020-11-16 18:04:23 +00:00
dnd.js dnd: Get transformed size for scaling before unparenting drag actor 2020-10-21 01:15:21 +02:00
edgeDragAction.js
endSessionDialog.js cleanup: Use optional chaining and ?? operator 2020-12-02 15:10:29 +00:00
environment.js cleanup: Use optional chaining and ?? operator 2020-12-02 15:10:29 +00:00
extensionDownloader.js extensionDownloader: Fix check for updates with several extensions 2020-07-15 18:26:11 -06:00
extensionSystem.js cleanup: Remove old compatibility code 2020-08-13 23:00:21 +00:00
focusCaretTracker.js
grabHelper.js
ibusCandidatePopup.js
iconGrid.js appDisplay: Make the app grid horizontal 2021-01-04 15:37:45 +00:00
inhibitShortcutsDialog.js cleanup: Use optional chaining and ?? operator 2020-12-02 15:10:29 +00:00
kbdA11yDialog.js cleanup: Remove empty leading/trailing lines in blocks 2020-11-16 18:04:23 +00:00
keyboard.js cleanup: Remove old compatibility code 2020-08-13 23:00:21 +00:00
layout.js layout: Only show ripple animation when overview was toggled 2020-07-27 13:13:14 +00:00
lightbox.js cleanup: Don't linebreak before closing parentheses 2020-04-28 09:04:49 +00:00
locatePointer.js
lookingGlass.js lookingGlass: Port to paint nodes 2020-12-10 16:15:49 +00:00
magnifier.js magnifier: Stop exposing D-Bus interface 2020-12-06 06:18:07 +01:00
main.js Move screencasting into a separate service process 2020-07-31 10:51:12 +02:00
messageList.js cleanup: Remove empty leading/trailing lines in blocks 2020-11-16 18:04:23 +00:00
messageTray.js messageTray: Default to generic policy 2020-12-01 20:02:02 +00:00
modalDialog.js
mpris.js mpris: Switch text in title and body 2020-10-26 04:02:14 +01:00
notificationDaemon.js cleanup: Use optional chaining and ?? operator 2020-12-02 15:10:29 +00:00
osdMonitorLabeler.js
osdWindow.js
overview.js overview: Increase SHADE_ANIMATION_TIME a bit 2021-01-13 23:06:48 +00:00
overviewControls.js overviewControls: Make sure dash is positioned at the bottom 2021-01-20 11:34:43 +00:00
padOsd.js cleanup: Use optional chaining and ?? operator 2020-12-02 15:10:29 +00:00
pageIndicators.js pageIndicator/animatedPageIndicators: Implement vertical animation 2020-12-02 22:43:04 +00:00
panel.js panel: Animate opacity changes of the panel corner 2021-01-13 23:06:48 +00:00
panelMenu.js cleanup: Use optional chaining and ?? operator 2020-12-02 15:10:29 +00:00
pointerA11yTimeout.js
pointerWatcher.js
popupMenu.js cleanup: Use optional chaining and ?? operator 2020-12-02 15:10:29 +00:00
remoteSearch.js js: Promisify async operations 2020-03-31 05:43:40 +00:00
ripples.js
runDialog.js js: Don't use templates in files with translations 2020-02-17 23:20:40 +01:00
screenShield.js screenShield: Tie LockedHint to locked state 2021-01-07 22:43:42 +01:00
screenshot.js screenshot: Properly clean up if PickColor() is cancelled 2020-05-29 00:52:33 +02:00
scripting.js scripting: Switch to standard async/await pattern 2020-08-12 15:43:38 +00:00
search.js cleanup: Use optional chaining and ?? operator 2020-12-02 15:10:29 +00:00
sessionMode.js cleanup: Remove old compatibility code 2020-08-13 23:00:21 +00:00
shellDBus.js dbusServices/screensaver: Split out public ScreenSaver service 2020-12-07 16:24:19 +00:00
shellEntry.js shellEntry: Restore natural-height-set instead of forcing it 2020-02-22 16:58:01 +00:00
shellMountOperation.js cleanup: Don't linebreak before closing parentheses 2020-04-28 09:04:49 +00:00
slider.js js: Add missing chain-ups in vfuncs 2020-03-27 10:39:58 +01:00
swipeTracker.js swipeTracker: Switch to 3-finger gestures 2021-01-08 14:28:39 -03:00
switcherPopup.js cleanup: Remove empty leading/trailing lines in blocks 2020-11-16 18:04:23 +00:00
switchMonitor.js
unlockDialog.js unlockDialog: Use unique unlock-dialog style class 2020-10-07 16:16:57 +00:00
userWidget.js theme: Don't draw border around symbolic user-icon 2020-12-17 21:46:41 +01:00
viewSelector.js workspacesView: Don't set full geometry 2020-07-07 00:06:53 +02:00
windowAttentionHandler.js messageTray: Don't create notification policy on demand 2020-03-26 18:52:10 +00:00
windowManager.js cleanup: Use optional chaining and ?? operator 2020-12-02 15:10:29 +00:00
windowMenu.js
windowPreview.js cleanup: Use optional chaining and ?? operator 2020-12-02 15:10:29 +00:00
workspace.js workspace: Don't unfreeze layout during overview animation 2021-01-13 21:40:22 +00:00
workspacesView.js workspacesView: Disable swipe tracker when animating from overview 2021-01-21 02:44:13 +01:00
workspaceSwitcherPopup.js cleanup: Remove empty leading/trailing lines in blocks 2020-11-16 18:04:23 +00:00
workspaceThumbnail.js Make sure to allocate all children in allocate vfuncs 2020-11-24 20:20:45 +00:00
xdndHandler.js cleanup: Use optional chaining and ?? operator 2020-12-02 15:10:29 +00:00