Garden was welded onto the notification list in CenterWidgetGroup — always on, unrelated, stealing space from notifications that said "Nothing". Moved it into the BottomWidgetGroup drawer as a fifth tab alongside Calendar, To Do, Pomodoro, and Stopwatch. CenterWidgetGroup is now just the notification list. Lens events (note_created, synced) emit through notify-send so they land in the notification system properly. Forked calendar, todo, pomodoro, notifications out of ii-base into our tree — the right sidebar no longer borrows any widget files from ii. Toggle dialogs (bluetooth, wifi, nightLight) still symlinked as infrastructure.
36 lines
No EOL
1,015 B
QML
36 lines
No EOL
1,015 B
QML
import qs.modules.common
|
|
import qs.modules.common.widgets
|
|
import QtQuick
|
|
|
|
RippleButton {
|
|
id: button
|
|
property string buttonText: ""
|
|
property string tooltipText: ""
|
|
property bool forceCircle: false
|
|
|
|
implicitHeight: 30
|
|
implicitWidth: forceCircle ? implicitHeight : (contentItem.implicitWidth + 10 * 2)
|
|
Behavior on implicitWidth {
|
|
SmoothedAnimation {
|
|
velocity: Appearance.animation.elementMove.velocity
|
|
}
|
|
}
|
|
|
|
background.anchors.fill: button
|
|
buttonRadius: Appearance.rounding.full
|
|
colBackground: Appearance.colors.colLayer2
|
|
colBackgroundHover: Appearance.colors.colLayer2Hover
|
|
colRipple: Appearance.colors.colLayer2Active
|
|
|
|
contentItem: StyledText {
|
|
text: buttonText
|
|
horizontalAlignment: Text.AlignHCenter
|
|
font.pixelSize: Appearance.font.pixelSize.larger
|
|
color: Appearance.colors.colOnLayer1
|
|
}
|
|
|
|
StyledToolTip {
|
|
text: tooltipText
|
|
extraVisibleCondition: tooltipText.length > 0
|
|
}
|
|
} |