mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
fix bar scrolls not also changing gamma
This commit is contained in:
@@ -59,8 +59,8 @@ Item { // Bar content region
|
|||||||
implicitWidth: leftSectionRowLayout.implicitWidth
|
implicitWidth: leftSectionRowLayout.implicitWidth
|
||||||
implicitHeight: Appearance.sizes.baseBarHeight
|
implicitHeight: Appearance.sizes.baseBarHeight
|
||||||
|
|
||||||
onScrollDown: root.brightnessMonitor.setBrightness(root.brightnessMonitor.brightness - 0.05)
|
onScrollDown: Brightness.decreaseBrightness()
|
||||||
onScrollUp: root.brightnessMonitor.setBrightness(root.brightnessMonitor.brightness + 0.05)
|
onScrollUp: Brightness.increaseBrightness()
|
||||||
onMovedAway: GlobalStates.osdBrightnessOpen = false
|
onMovedAway: GlobalStates.osdBrightnessOpen = false
|
||||||
onPressed: event => {
|
onPressed: event => {
|
||||||
if (event.button === Qt.LeftButton)
|
if (event.button === Qt.LeftButton)
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ Scope {
|
|||||||
if (!Config.options.sidebar.cornerOpen.valueScroll)
|
if (!Config.options.sidebar.cornerOpen.valueScroll)
|
||||||
return;
|
return;
|
||||||
if (cornerWidget.isLeft)
|
if (cornerWidget.isLeft)
|
||||||
cornerPanelWindow.brightnessMonitor.setBrightness(cornerPanelWindow.brightnessMonitor.brightness - 0.05);
|
Brightness.decreaseBrightness()
|
||||||
else {
|
else {
|
||||||
const currentVolume = Audio.value;
|
const currentVolume = Audio.value;
|
||||||
const step = currentVolume < 0.1 ? 0.01 : 0.02 || 0.2;
|
const step = currentVolume < 0.1 ? 0.01 : 0.02 || 0.2;
|
||||||
@@ -109,7 +109,7 @@ Scope {
|
|||||||
if (!Config.options.sidebar.cornerOpen.valueScroll)
|
if (!Config.options.sidebar.cornerOpen.valueScroll)
|
||||||
return;
|
return;
|
||||||
if (cornerWidget.isLeft)
|
if (cornerWidget.isLeft)
|
||||||
cornerPanelWindow.brightnessMonitor.setBrightness(cornerPanelWindow.brightnessMonitor.brightness + 0.05);
|
Brightness.increaseBrightness()
|
||||||
else {
|
else {
|
||||||
const currentVolume = Audio.value;
|
const currentVolume = Audio.value;
|
||||||
const step = currentVolume < 0.1 ? 0.01 : 0.02 || 0.2;
|
const step = currentVolume < 0.1 ? 0.01 : 0.02 || 0.2;
|
||||||
|
|||||||
@@ -54,8 +54,8 @@ Item { // Bar content region
|
|||||||
height: (root.height - middleSection.height) / 2
|
height: (root.height - middleSection.height) / 2
|
||||||
width: Appearance.sizes.verticalBarWidth
|
width: Appearance.sizes.verticalBarWidth
|
||||||
|
|
||||||
onScrollDown: root.brightnessMonitor.setBrightness(root.brightnessMonitor.brightness - 0.05)
|
onScrollDown: Brightness.decreaseBrightness()
|
||||||
onScrollUp: root.brightnessMonitor.setBrightness(root.brightnessMonitor.brightness + 0.05)
|
onScrollUp: Brightness.increaseBrightness()
|
||||||
onMovedAway: GlobalStates.osdBrightnessOpen = false
|
onMovedAway: GlobalStates.osdBrightnessOpen = false
|
||||||
onPressed: event => {
|
onPressed: event => {
|
||||||
if (event.button === Qt.LeftButton)
|
if (event.button === Qt.LeftButton)
|
||||||
|
|||||||
Reference in New Issue
Block a user