Fix scaling issues

#2261
This commit is contained in:
Charles Gagnon
2025-03-09 18:35:29 -04:00
parent 48d38a2bdc
commit 9322d6ac5f
2 changed files with 2 additions and 2 deletions

View File

@@ -755,7 +755,7 @@ export const Panel = GObject.registerClass(
else if (!isVertical && panelSize - topBottomPadding * 2 < MIN_PANEL_SIZE)
topBottomPadding = (panelSize - MIN_PANEL_SIZE) * 0.5
iconSize = innerSize = outerSize = panelSize
iconSize = innerSize = outerSize = panelSize * scaleFactor
if (
SETTINGS.get_boolean('stockgs-keep-top-panel') &&

View File

@@ -1014,7 +1014,7 @@ export const Taskbar = class extends EventEmitter {
}
_adjustIconSize() {
let panelSize = this.dtpPanel.geom.iconSize
let panelSize = this.dtpPanel.geom.iconSize / Utils.getScaleFactor()
let availSize = panelSize - SETTINGS.get_int('appicon-padding') * 2
let minIconSize = MIN_ICON_SIZE + (panelSize % 2)