feat : add option toggle label in dock

- closes : #4457
This commit is contained in:
MrSluffy committed 2025-02-14 19:47:15 +08:00
1 parent d7faa1491d
commit 473121ad53
5 files changed
+25 -3

No files matched your search

@@ -933,7 +933,12 @@ public class DeviceProfile {
private void updateHotseatSizes(int hotseatIconSizePx) {
// Ensure there is enough space for folder icons, which have a slightly larger
// radius.
int iconTextHeight = Utilities.calculateTextHeight(iconTextSizePx);
var isLabelInDock = PreferenceExtensionsKt.firstBlocking(preferenceManager2.getEnableLabelInDock());
hotseatCellHeightPx = getIconSizeWithOverlap(hotseatIconSizePx * 2) - hotseatIconSizePx / 2;
hotseatCellHeightPx += isLabelInDock ? iconTextHeight : 0;
hotseatQsbSpace += isLabelInDock ? iconTextHeight : 0;
var space = Math.abs(hotseatCellHeightPx / 2) - 16;