Files
sloposk/qml/SettingsButton.qml
ericek111andClaude Opus 5.5 23e957660f Reword code comments in plain technical language
Comments only, no code changes. Replaces vague or personified phrasing
with explicit statements of what the code does and why, uses bullet
lists for multi-case behavior, and fixes the settings path in
WindowSettings.h (~/.config/sloposk/sloposk.conf).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 19:58:59 +01:00

37 lines
741 B
QML

import QtQuick
// Gear in the grab bar; opens and closes the settings panel.
Item {
id: button
property bool checked: false
// Shows a dot when Diagnostics reports a problem.
property bool alert: false
signal clicked()
implicitWidth: 36
implicitHeight: 22
Text {
anchors.centerIn: parent
text: button.checked ? "⌨" : "⚙"
font.pixelSize: 15
color: tap.pressed ? Theme.text : Theme.handle
}
Rectangle {
visible: button.alert && !button.checked
width: 6
height: 6
radius: 3
color: Theme.warning
x: parent.width / 2 + 6
y: 3
}
TapHandler {
id: tap
onTapped: button.clicked()
}
}