change names for two Communicator options

--follow qt naming for some Communicator options
pull/4/head
Michail Vourlakos 6 years ago
parent 3908b668a3
commit d04a3307d7

@ -59,7 +59,8 @@ Item {
}
property bool userBlocksColorizing: false
property bool appletBlocksColorizing: communicator.disableLatteSideColoring
property bool appletBlocksColorizing: !communicator.latteSideColoringEnabled
property bool appletBlocksParabolicEffect: !communicator.parabolicEffectEnabled
property bool showZoomed: false
property bool lockZoom: false
property bool isExpanded: applet && applet.status >= PlasmaCore.Types.NeedsAttentionStatus

@ -21,10 +21,10 @@ import QtQuick 2.7
Item{
function setProperty(appletId, parameter, value) {
if (parameter === "disableLatteSideColoring") {
mainCommunicator.disableLatteSideColoring = value;
} else if (parameter === "disableLatteIconOverlay") {
mainCommunicator.disableLatteIconOverlay = value;
if (parameter === "latteSideColoringEnabled") {
mainCommunicator.latteSideColoringEnabled = value;
} else if (parameter === "latteIconOverlayEnabled") {
mainCommunicator.latteIconOverlayEnabled = value;
} else if (parameter === "activeIndicatorEnabled") {
mainCommunicator.activeIndicatorEnabled = value;
} else if (parameter === "parabolicEffectEnabled") {
@ -33,10 +33,10 @@ Item{
}
function getProperty(appletId, parameter, value) {
if (parameter === "disableLatteSideColoring") {
return mainCommunicator.disableLatteSideColoring;
} else if (parameter === "disableLatteIconOverlay") {
return mainCommunicator.disableLatteIconOverlay;
if (parameter === "latteSideColoringEnabled") {
return mainCommunicator.latteSideColoringEnabled;
} else if (parameter === "latteIconOverlayEnabled") {
return mainCommunicator.latteIconOverlayEnabled;
} else if (parameter === "activeIndicatorEnabled") {
return mainCommunicator.activeIndicatorEnabled;
} else if (parameter === "parabolicEffectEnabled") {

@ -39,7 +39,7 @@ Item{
//! BEGIN OF PROPERTIES
//this is used for folderView and icon widgets to fake their visual icons
readonly property bool canShowOverlaiedLatteIcon: appletIconItem
readonly property bool overlayLatteIconIsActive: canShowOverlaiedLatteIcon && !disableLatteIconOverlay
readonly property bool overlayLatteIconIsActive: canShowOverlaiedLatteIcon && latteIconOverlayEnabled
property Item appletRootItem: appletDiscoveredRootItem ? appletDiscoveredRootItem : appletDefaultRootItem
property Item appletDiscoveredRootItem: null
@ -50,8 +50,8 @@ Item{
//! END OF PROPERTIES
//! BEGIN OF PUBLIC PROPERTIES SET THROUGH LATTEBRIDGE.ACTIONS
property bool disableLatteSideColoring: false
property bool disableLatteIconOverlay: false
property bool latteSideColoringEnabled: true
property bool latteIconOverlayEnabled: true
property bool activeIndicatorEnabled: true
property bool parabolicEffectEnabled: true
//! END OF PUBLIC PROPERTIES SET THROUGH LATTEBRIDGE.ACTIONS

@ -43,7 +43,7 @@ Item{
// USE CASE: when Latte is transparent and applets colors need to be adjusted in order
// to look consistent with the underlying desktop background
// @since: 0.9
readonly property QtObject palette: disableLatteSideColoring ? colorizerManager : null
readonly property QtObject palette: !latteSideColoringEnabled ? colorizerManager : null
// NAME: applyPalette
// USAGE: read-only
@ -52,16 +52,16 @@ Item{
// USE CASE: when Latte is transparent and applets colors need to be adjusted in order
// to look consistent with the underlying desktop background
// @since: 0.9
readonly property bool applyPalette: disableLatteSideColoring ? colorizerManager.mustBeShown : false
readonly property bool applyPalette: !latteSideColoringEnabled ? colorizerManager.mustBeShown : false
property Item actions: Actions{}
// NAME: disableLatteSideColoring
// NAME: latteSideColoringEnabled
// TYPE: bool
// USAGE: writable through actions.setProperty
// EXPLANATION: when is TRUE, Latte is not painting/colorizing this applet
// EXPLANATION: when is FALSE, Latte is not painting/colorizing this applet
// in any case. In such case the applet can use 'palette'
// in order to access the color palette used at all cases from Latte
// USE CASE: when Latte is transparent and applets colors need to be adjusted in order
@ -70,10 +70,10 @@ Item{
// @since: 0.9
// NAME: disableLatteIconOverlay
// NAME: latteIconOverlayEnabled
// TYPE: bool
// USAGE: writable through actions.setProperty
// EXPLANATION: when is TRUE, Latte is not overlaying any icons above
// EXPLANATION: when is FALSE, Latte is not overlaying any icons above
// the applet or alters the applet visual in any sense.
// That means that the applet is responsible to provide a coherent
// parabolic effect experience.

Loading…
Cancel
Save