mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 23:09:26 -05:00
245 lines
8.6 KiB
QML
245 lines
8.6 KiB
QML
import QtQuick
|
|
import Quickshell
|
|
import Quickshell.Io
|
|
import QtQuick.Layouts
|
|
import qs.services
|
|
import qs.modules.common
|
|
import qs.modules.common.functions
|
|
import qs.modules.common.widgets
|
|
|
|
ContentPage {
|
|
forceWidth: true
|
|
|
|
ContentSection {
|
|
icon: "colors"
|
|
title: Translation.tr("Color generation")
|
|
|
|
ConfigSwitch {
|
|
buttonIcon: "hardware"
|
|
text: Translation.tr("Shell & utilities")
|
|
checked: Config.options.appearance.wallpaperTheming.enableAppsAndShell
|
|
onCheckedChanged: {
|
|
Config.options.appearance.wallpaperTheming.enableAppsAndShell = checked;
|
|
}
|
|
}
|
|
ConfigSwitch {
|
|
buttonIcon: "tv_options_input_settings"
|
|
text: Translation.tr("Qt apps")
|
|
checked: Config.options.appearance.wallpaperTheming.enableQtApps
|
|
onCheckedChanged: {
|
|
Config.options.appearance.wallpaperTheming.enableQtApps = checked;
|
|
}
|
|
StyledToolTip {
|
|
text: Translation.tr("Shell & utilities theming must also be enabled")
|
|
}
|
|
}
|
|
ConfigSwitch {
|
|
buttonIcon: "terminal"
|
|
text: Translation.tr("Terminal")
|
|
checked: Config.options.appearance.wallpaperTheming.enableTerminal
|
|
onCheckedChanged: {
|
|
Config.options.appearance.wallpaperTheming.enableTerminal = checked;
|
|
}
|
|
StyledToolTip {
|
|
text: Translation.tr("Shell & utilities theming must also be enabled")
|
|
}
|
|
}
|
|
ConfigRow {
|
|
uniform: true
|
|
ConfigSwitch {
|
|
buttonIcon: "dark_mode"
|
|
text: Translation.tr("Force dark mode in terminal")
|
|
checked: Config.options.appearance.wallpaperTheming.terminalGenerationProps.forceDarkMode
|
|
onCheckedChanged: {
|
|
Config.options.appearance.wallpaperTheming.terminalGenerationProps.forceDarkMode= checked;
|
|
}
|
|
StyledToolTip {
|
|
text: Translation.tr("Ignored if terminal theming is not enabled")
|
|
}
|
|
}
|
|
}
|
|
|
|
ConfigSpinBox {
|
|
icon: "invert_colors"
|
|
text: Translation.tr("Terminal: Harmony (%)")
|
|
value: Config.options.appearance.wallpaperTheming.terminalGenerationProps.harmony * 100
|
|
from: 0
|
|
to: 100
|
|
stepSize: 10
|
|
onValueChanged: {
|
|
Config.options.appearance.wallpaperTheming.terminalGenerationProps.harmony = value / 100;
|
|
}
|
|
}
|
|
ConfigSpinBox {
|
|
icon: "gradient"
|
|
text: Translation.tr("Terminal: Harmonize threshold")
|
|
value: Config.options.appearance.wallpaperTheming.terminalGenerationProps.harmonizeThreshold
|
|
from: 0
|
|
to: 100
|
|
stepSize: 10
|
|
onValueChanged: {
|
|
Config.options.appearance.wallpaperTheming.terminalGenerationProps.harmonizeThreshold = value;
|
|
}
|
|
}
|
|
ConfigSpinBox {
|
|
icon: "format_color_text"
|
|
text: Translation.tr("Terminal: Foreground boost (%)")
|
|
value: Config.options.appearance.wallpaperTheming.terminalGenerationProps.termFgBoost * 100
|
|
from: 0
|
|
to: 100
|
|
stepSize: 10
|
|
onValueChanged: {
|
|
Config.options.appearance.wallpaperTheming.terminalGenerationProps.termFgBoost = value / 100;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
ContentSection {
|
|
icon: "keyboard"
|
|
title: Translation.tr("Keybinds Cheatsheet")
|
|
|
|
ContentSubsection {
|
|
title: Translation.tr("Super Key Symbol")
|
|
ConfigSelectionArray {
|
|
currentValue: Config.options.appearance.keybinds.superKey
|
|
onSelected: newValue => {
|
|
Config.options.appearance.keybinds.superKey = newValue;
|
|
}
|
|
// Use a nerdfont to see the icons
|
|
// 0: | 1: | 2: | 3: | 4:
|
|
// 5: | 6: | 7: | 8: | 9:
|
|
// 10: | 11: | 12: | 13: | 14:
|
|
options: [
|
|
{
|
|
displayName: "",
|
|
value: 0
|
|
},
|
|
{
|
|
displayName: "",
|
|
value: 3
|
|
},
|
|
{
|
|
displayName: "",
|
|
value: 4
|
|
},
|
|
{
|
|
displayName: "",
|
|
value: 5
|
|
},
|
|
{
|
|
displayName: "",
|
|
value: 7
|
|
},
|
|
{
|
|
displayName: "",
|
|
value: 12
|
|
},
|
|
{
|
|
displayName: "",
|
|
value: 13
|
|
},
|
|
{
|
|
displayName: "",
|
|
value: 11
|
|
},
|
|
{
|
|
displayName: "",
|
|
value: 10
|
|
},
|
|
{
|
|
displayName: "",
|
|
value: 8
|
|
},
|
|
{
|
|
displayName: "",
|
|
value: 14
|
|
},
|
|
{
|
|
displayName: "",
|
|
value: 9
|
|
},
|
|
{
|
|
displayName: "",
|
|
value: 6
|
|
},
|
|
{
|
|
displayName: "",
|
|
value: 2
|
|
},
|
|
]
|
|
}
|
|
}
|
|
|
|
ConfigSwitch {
|
|
buttonIcon: ""
|
|
text: Translation.tr("Use macOS-like symbols for mods keys")
|
|
checked: Config.options.appearance.keybinds.useMacSymbol
|
|
onCheckedChanged: {
|
|
Config.options.appearance.keybinds.useMacSymbol = checked;
|
|
}
|
|
StyledToolTip {
|
|
text: Translation.tr("macOS-style symbols, e.g. for Ctrl, for Alt, for Shift, etc")
|
|
}
|
|
}
|
|
|
|
ConfigSwitch {
|
|
buttonIcon: ""
|
|
text: Translation.tr("Use symbols for function keys")
|
|
checked: Config.options.appearance.keybinds.useFnSymbol
|
|
onCheckedChanged: {
|
|
Config.options.appearance.keybinds.useFnSymbol = checked;
|
|
}
|
|
StyledToolTip {
|
|
text: Translation.tr("Show instead of Escape, for F1, etc to for F12")
|
|
}
|
|
}
|
|
ConfigSwitch {
|
|
buttonIcon: ""
|
|
text: Translation.tr("Use symbols for mouse")
|
|
checked: Config.options.appearance.keybinds.useMouseSymbol
|
|
onCheckedChanged: {
|
|
Config.options.appearance.keybinds.useMouseSymbol = checked;
|
|
}
|
|
StyledToolTip {
|
|
text: Translation.tr("Replace for \"Scroll ↓\", \"Scroll ↑\", L \"LMB\", R \"RMB\", \"Scroll ↑/↓\" and Page for \"Page_↑/↓\"")
|
|
}
|
|
}
|
|
ConfigSwitch {
|
|
buttonIcon: ""
|
|
text: Translation.tr("Use macOS shortcut layout")
|
|
checked: Config.options.appearance.keybinds.useMacLikeShortcut
|
|
onCheckedChanged: {
|
|
Config.options.appearance.keybinds.useMacLikeShortcut = checked;
|
|
}
|
|
StyledToolTip {
|
|
text: Translation.tr("Show mods and key in the same keycap, look better with symbols")
|
|
}
|
|
|
|
}
|
|
|
|
ConfigSpinBox {
|
|
// text: Translation.tr("Keycap")
|
|
text: Translation.tr("Key font size")
|
|
value: Config.options.appearance.keybinds.pixelSize.key
|
|
from: Appearance.font.pixelSize.smallest
|
|
to: Appearance.font.pixelSize.large
|
|
stepSize: 1
|
|
onValueChanged: {
|
|
Config.options.appearance.keybinds.pixelSize.key = value;
|
|
}
|
|
}
|
|
ConfigSpinBox {
|
|
text: Translation.tr("Comment font size")
|
|
value: Config.options.appearance.keybinds.pixelSize.comment
|
|
from: Appearance.font.pixelSize.smallest
|
|
to: Appearance.font.pixelSize.large
|
|
stepSize: 1
|
|
onValueChanged: {
|
|
Config.options.appearance.keybinds.pixelSize.comment = value;
|
|
}
|
|
}
|
|
}
|
|
}
|