config option for min brightness + clipboard config options now in settings
This commit is contained in:
@@ -11,7 +11,7 @@ Item {
|
||||
property int contentHeight
|
||||
property real offsetScale: shouldBeActive ? 0 : 1
|
||||
required property ShellScreen screen
|
||||
readonly property bool shouldBeActive: visibilities.clipboard
|
||||
readonly property bool shouldBeActive: visibilities.clipboard && Config.clipboard.enabled
|
||||
required property PersistentProperties visibilities
|
||||
|
||||
anchors.bottomMargin: (-implicitHeight - 5) * offsetScale
|
||||
|
||||
@@ -97,7 +97,9 @@ Item {
|
||||
|
||||
FilledSlider {
|
||||
anchors.fill: parent
|
||||
from: Config.services.minBrightness
|
||||
icon: `brightness_${(Math.round(value * 6) + 1)}`
|
||||
to: 1.0
|
||||
value: root.brightness
|
||||
|
||||
onPressedChanged: {
|
||||
|
||||
@@ -92,6 +92,18 @@ SettingsPage {
|
||||
Separator {
|
||||
}
|
||||
|
||||
SettingSpinBox {
|
||||
max: 1.0
|
||||
min: 0
|
||||
name: "Minimum brightness"
|
||||
object: Config.services
|
||||
setting: "minBrightness"
|
||||
step: 0.01
|
||||
}
|
||||
|
||||
Separator {
|
||||
}
|
||||
|
||||
SettingSpinBox {
|
||||
max: 5
|
||||
min: 0
|
||||
|
||||
@@ -46,6 +46,75 @@ SettingsPage {
|
||||
}
|
||||
}
|
||||
|
||||
SettingsSection {
|
||||
sectionId: "Clipboard"
|
||||
|
||||
SettingsHeader {
|
||||
name: "Clipboard"
|
||||
}
|
||||
|
||||
SettingSwitch {
|
||||
name: "Enable clipboard history viewer"
|
||||
object: Config.clipboard
|
||||
setting: "enabled"
|
||||
}
|
||||
|
||||
Separator {
|
||||
}
|
||||
|
||||
SettingSpinBox {
|
||||
max: 20
|
||||
min: 1
|
||||
name: "Max entries visible"
|
||||
object: Config.clipboard
|
||||
setting: "maxEntriesShown"
|
||||
}
|
||||
|
||||
Separator {
|
||||
}
|
||||
|
||||
SettingSpinBox {
|
||||
max: 80
|
||||
min: 30
|
||||
name: "Entry height"
|
||||
object: Config.clipboard.sizes
|
||||
setting: "itemHeight"
|
||||
}
|
||||
|
||||
Separator {
|
||||
}
|
||||
|
||||
SettingSpinBox {
|
||||
max: 700
|
||||
min: 300
|
||||
name: "Entry width"
|
||||
object: Config.clipboard.sizes
|
||||
setting: "width"
|
||||
}
|
||||
|
||||
Separator {
|
||||
}
|
||||
|
||||
SettingSpinBox {
|
||||
max: 1800
|
||||
min: 50
|
||||
name: "Minimum preview width"
|
||||
object: Config.clipboard.sizes
|
||||
setting: "minPreviewWidth"
|
||||
}
|
||||
|
||||
Separator {
|
||||
}
|
||||
|
||||
SettingSpinBox {
|
||||
max: 1800
|
||||
min: 50
|
||||
name: "Maximum preview width"
|
||||
object: Config.clipboard.sizes
|
||||
setting: "previewWidth"
|
||||
}
|
||||
}
|
||||
|
||||
SettingsSection {
|
||||
sectionId: "Toasts"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user