mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
5d849b224b
+ Added setting to enable/disable scroll-wheel support on workspace widget[ + Added a few missing Hand pointer here and there.
27 lines
766 B
QML
27 lines
766 B
QML
import Quickshell
|
|
import qs.Commons
|
|
import qs.Services.UI
|
|
import qs.Widgets
|
|
|
|
NIconButton {
|
|
id: root
|
|
|
|
property ShellScreen screen
|
|
|
|
icon: "dark-mode"
|
|
tooltipText: Settings.data.colorSchemes.darkMode ? I18n.tr("tooltips.switch-to-light-mode") : I18n.tr("tooltips.switch-to-dark-mode")
|
|
tooltipDirection: BarService.getTooltipDirection()
|
|
density: Settings.data.bar.density
|
|
baseSize: Style.capsuleHeight
|
|
applyUiScale: false
|
|
customRadius: Style.radiusL
|
|
colorBg: Style.capsuleColor
|
|
colorFg: Color.mOnSurface
|
|
colorBorder: Color.transparent
|
|
colorBorderHover: Color.transparent
|
|
onClicked: Settings.data.colorSchemes.darkMode = !Settings.data.colorSchemes.darkMode
|
|
|
|
border.color: Style.capsuleBorderColor
|
|
border.width: Style.capsuleBorderWidth
|
|
}
|