mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-29 07:52:50 -05:00
desktop plugins: enable by default
This commit is contained in:
@@ -47,7 +47,7 @@ BasePill {
|
|||||||
function getNetworkIconColor() {
|
function getNetworkIconColor() {
|
||||||
if (NetworkService.wifiToggling)
|
if (NetworkService.wifiToggling)
|
||||||
return Theme.primary;
|
return Theme.primary;
|
||||||
return NetworkService.networkStatus !== "disconnected" ? Theme.primary : Theme.outlineButton;
|
return NetworkService.networkStatus !== "disconnected" ? Theme.primary : Theme.surfaceText;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getVolumeIconName() {
|
function getVolumeIconName() {
|
||||||
@@ -70,9 +70,9 @@ BasePill {
|
|||||||
|
|
||||||
function getMicIconColor() {
|
function getMicIconColor() {
|
||||||
if (!AudioService.source?.audio)
|
if (!AudioService.source?.audio)
|
||||||
return Theme.outlineButton;
|
return Theme.surfaceText;
|
||||||
if (AudioService.source.audio.muted || AudioService.source.audio.volume === 0)
|
if (AudioService.source.audio.muted || AudioService.source.audio.volume === 0)
|
||||||
return Theme.outlineButton;
|
return Theme.surfaceText;
|
||||||
return Theme.widgetIconColor;
|
return Theme.widgetIconColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -182,7 +182,7 @@ BasePill {
|
|||||||
DankIcon {
|
DankIcon {
|
||||||
name: "vpn_lock"
|
name: "vpn_lock"
|
||||||
size: Theme.barIconSize(root.barThickness, -4)
|
size: Theme.barIconSize(root.barThickness, -4)
|
||||||
color: NetworkService.vpnConnected ? Theme.primary : Theme.outlineButton
|
color: NetworkService.vpnConnected ? Theme.primary : Theme.surfaceText
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
visible: root.showVpnIcon && NetworkService.vpnAvailable && NetworkService.vpnConnected
|
visible: root.showVpnIcon && NetworkService.vpnAvailable && NetworkService.vpnConnected
|
||||||
}
|
}
|
||||||
@@ -190,7 +190,7 @@ BasePill {
|
|||||||
DankIcon {
|
DankIcon {
|
||||||
name: "bluetooth"
|
name: "bluetooth"
|
||||||
size: Theme.barIconSize(root.barThickness, -4)
|
size: Theme.barIconSize(root.barThickness, -4)
|
||||||
color: BluetoothService.connected ? Theme.primary : Theme.outlineButton
|
color: BluetoothService.connected ? Theme.primary : Theme.surfaceText
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
visible: root.showBluetoothIcon && BluetoothService.available && BluetoothService.enabled
|
visible: root.showBluetoothIcon && BluetoothService.available && BluetoothService.enabled
|
||||||
}
|
}
|
||||||
@@ -314,7 +314,7 @@ BasePill {
|
|||||||
id: vpnIcon
|
id: vpnIcon
|
||||||
name: "vpn_lock"
|
name: "vpn_lock"
|
||||||
size: Theme.barIconSize(root.barThickness, -4)
|
size: Theme.barIconSize(root.barThickness, -4)
|
||||||
color: NetworkService.vpnConnected ? Theme.primary : Theme.outlineButton
|
color: NetworkService.vpnConnected ? Theme.primary : Theme.surfaceText
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
visible: root.showVpnIcon && NetworkService.vpnAvailable && NetworkService.vpnConnected
|
visible: root.showVpnIcon && NetworkService.vpnAvailable && NetworkService.vpnConnected
|
||||||
}
|
}
|
||||||
@@ -323,7 +323,7 @@ BasePill {
|
|||||||
id: bluetoothIcon
|
id: bluetoothIcon
|
||||||
name: "bluetooth"
|
name: "bluetooth"
|
||||||
size: Theme.barIconSize(root.barThickness, -4)
|
size: Theme.barIconSize(root.barThickness, -4)
|
||||||
color: BluetoothService.connected ? Theme.primary : Theme.outlineButton
|
color: BluetoothService.connected ? Theme.primary : Theme.surfaceText
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
visible: root.showBluetoothIcon && BluetoothService.available && BluetoothService.enabled
|
visible: root.showBluetoothIcon && BluetoothService.available && BluetoothService.enabled
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -227,7 +227,7 @@ Singleton {
|
|||||||
};
|
};
|
||||||
_updateAvailablePluginsList();
|
_updateAvailablePluginsList();
|
||||||
pluginListUpdated();
|
pluginListUpdated();
|
||||||
const enabled = SettingsData.getPluginSetting(manifest.id, "enabled", false);
|
const enabled = info.type === "desktop" || SettingsData.getPluginSetting(manifest.id, "enabled", false);
|
||||||
if (enabled && !info.loaded)
|
if (enabled && !info.loaded)
|
||||||
loadPlugin(manifest.id);
|
loadPlugin(manifest.id);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user