mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-16 00:04:01 -04:00
them towards theme controlCenter: make a real grid, add numerous more tile varieties, add icon size option surfaces: fix elevation levels in general, and shift them down settings: restyles and re-org sliders: scale down universally
13 lines
457 B
QML
13 lines
457 B
QML
import QtQuick
|
|
import qs.Common
|
|
|
|
CcTileActions {
|
|
signal selected(int minutes)
|
|
|
|
actions: [15, 30, 60, 120, 0].map(minutes => ({
|
|
text: minutes === 0 ? I18n.tr("Until I turn it off") : minutes < 60 ? I18n.tr("%1 min", "short duration chip, %1 is a number of minutes").arg(minutes) : I18n.duration(minutes * 60),
|
|
icon: minutes === 0 ? "block" : "timer",
|
|
trigger: () => selected(minutes)
|
|
}))
|
|
}
|