Changeset View
Changeset View
Standalone View
Standalone View
package/contents/ui/main.qml
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | 22 | Item { | |||
---|---|---|---|---|---|
62 | // - parts | 62 | // - parts | ||
63 | property string brightnessAndGamma: ' -b ' + dayBrightness + ':' + nightBrightness + ' -g ' + gammaR + ':' + gammaG + ':' + gammaB | 63 | property string brightnessAndGamma: ' -b ' + dayBrightness + ':' + nightBrightness + ' -g ' + gammaR + ':' + gammaG + ':' + gammaB | ||
64 | property string locationCmdPart: geoclueLocationEnabled ? '' : ' -l ' + latitude + ':' + longitude | 64 | property string locationCmdPart: geoclueLocationEnabled ? '' : ' -l ' + latitude + ':' + longitude | ||
65 | property string modeCmdPart: renderModeString === '' ? '' : ' ' + renderModeString | 65 | property string modeCmdPart: renderModeString === '' ? '' : ' ' + renderModeString | ||
66 | 66 | | |||
67 | // - commands | 67 | // - commands | ||
68 | property string redshiftCommand: 'redshift' + locationCmdPart + modeCmdPart + ' -t ' + dayTemperature + ':' + nightTemperature + brightnessAndGamma + (smoothTransitions ? '' : ' -r') | 68 | property string redshiftCommand: 'redshift' + locationCmdPart + modeCmdPart + ' -t ' + dayTemperature + ':' + nightTemperature + brightnessAndGamma + (smoothTransitions ? '' : ' -r') | ||
69 | property string redshiftOneTimeBrightnessAndGamma: ' -b ' + (currentBrightness*0.01).toFixed(2) + ':' + (currentBrightness*0.01).toFixed(2) + ' -g ' + gammaR + ':' + gammaG + ':' + gammaB | 69 | property string redshiftOneTimeBrightnessAndGamma: ' -b ' + (currentBrightness*0.01).toFixed(2) + ':' + (currentBrightness*0.01).toFixed(2) + ' -g ' + gammaR + ':' + gammaG + ':' + gammaB | ||
70 | property string redshiftOneTimeCommand: 'redshift -O ' + manualTemperature + redshiftOneTimeBrightnessAndGamma + ' -r' | 70 | property string redshiftOneTimeCommand: 'redshift' + modeCmdPart + ' -O ' + manualTemperature + redshiftOneTimeBrightnessAndGamma + ' -r' | ||
71 | property string redshiftPrintCommand: 'LANG=C ' + redshiftCommand + ' -p' | 71 | property string redshiftPrintCommand: 'LANG=C ' + redshiftCommand + ' -p' | ||
72 | 72 | | |||
73 | property bool inTray: (plasmoid.parent === null || plasmoid.parent.objectName === 'taskItemContainer') | 73 | property bool inTray: (plasmoid.parent === null || plasmoid.parent.objectName === 'taskItemContainer') | ||
74 | 74 | | |||
75 | Plasmoid.preferredRepresentation: Plasmoid.compactRepresentation | 75 | Plasmoid.preferredRepresentation: Plasmoid.compactRepresentation | ||
76 | Plasmoid.compactRepresentation: CompactRepresentation { } | 76 | Plasmoid.compactRepresentation: CompactRepresentation { } | ||
77 | 77 | | |||
78 | Component.onCompleted: { | 78 | Component.onCompleted: { | ||
▲ Show 20 Lines • Show All 182 Lines • Show Last 20 Lines |