internal: code style
This commit is contained in:
parent
4cd554d191
commit
45dce6349a
1 changed files with 8 additions and 9 deletions
|
|
@ -53,12 +53,13 @@ MouseArea {
|
||||||
visibilities.osd = false;
|
visibilities.osd = false;
|
||||||
osdHovered = false;
|
osdHovered = false;
|
||||||
}
|
}
|
||||||
if (!dashboardShortcutActive) {
|
|
||||||
|
if (!dashboardShortcutActive)
|
||||||
visibilities.dashboard = false;
|
visibilities.dashboard = false;
|
||||||
}
|
|
||||||
if (!utilitiesShortcutActive) {
|
if (!utilitiesShortcutActive)
|
||||||
visibilities.utilities = false;
|
visibilities.utilities = false;
|
||||||
}
|
|
||||||
popouts.hasCurrent = false;
|
popouts.hasCurrent = false;
|
||||||
|
|
||||||
if (Config.bar.showOnHover)
|
if (Config.bar.showOnHover)
|
||||||
|
|
@ -71,18 +72,16 @@ MouseArea {
|
||||||
const y = event.y;
|
const y = event.y;
|
||||||
|
|
||||||
// Show bar in non-exclusive mode on hover
|
// Show bar in non-exclusive mode on hover
|
||||||
if (!visibilities.bar && Config.bar.showOnHover && x < bar.implicitWidth) {
|
if (!visibilities.bar && Config.bar.showOnHover && x < bar.implicitWidth)
|
||||||
bar.isHovered = true;
|
bar.isHovered = true;
|
||||||
}
|
|
||||||
|
|
||||||
// Show/hide bar on drag
|
// Show/hide bar on drag
|
||||||
if (pressed && dragStart.x < bar.implicitWidth) {
|
if (pressed && dragStart.x < bar.implicitWidth) {
|
||||||
const dragX = x - dragStart.x;
|
const dragX = x - dragStart.x;
|
||||||
if (dragX > Config.bar.dragThreshold) {
|
if (dragX > Config.bar.dragThreshold)
|
||||||
visibilities.bar = true;
|
visibilities.bar = true;
|
||||||
} else if (dragX < -Config.bar.dragThreshold) {
|
else if (dragX < -Config.bar.dragThreshold)
|
||||||
visibilities.bar = false;
|
visibilities.bar = false;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show osd on hover
|
// Show osd on hover
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue