mirror of
https://github.com/ckb-next/ckb-next.git
synced 2026-10-10 12:27:21 -04:00
gui: Fix KSNI brightness scroll direction
This commit is contained in:
@@ -10,9 +10,9 @@ CkbSystemTrayIcon::CkbSystemTrayIcon(const QIcon& icon, const QString iconName,
|
||||
connect(this, &KStatusNotifierItem::scrollRequested, [this](int delta, Qt::Orientation orientation) {
|
||||
QPoint data;
|
||||
if(orientation == Qt::Horizontal)
|
||||
data.setX(delta);
|
||||
data.setX(delta); // Untested (and unused), might need to be -delta too
|
||||
else
|
||||
data.setY(delta);
|
||||
data.setY(-delta);
|
||||
|
||||
emit scrollRequested(data);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user