mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-06 05:25:41 -05:00
refactor: start trimming AI bullcrap patterns
This commit is contained in:
66
shell.qml
66
shell.qml
@@ -37,19 +37,11 @@ ShellRoot {
|
||||
property real trayMenuY: 0
|
||||
property var currentTrayMenu: null
|
||||
property var currentTrayItem: null
|
||||
property string osLogo: OSDetectorService.osLogo
|
||||
property string osName: OSDetectorService.osName
|
||||
property bool notificationHistoryVisible: false
|
||||
property bool mediaPlayerVisible: false
|
||||
property MprisPlayer activePlayer: MprisController.activePlayer
|
||||
property bool hasActiveMedia: activePlayer && (activePlayer.trackTitle || activePlayer.trackArtist)
|
||||
property bool hasActiveMedia: MprisController.active && (MprisController.active.trackTitle || MprisController.active.trackArtist)
|
||||
property bool controlCenterVisible: false
|
||||
|
||||
// Monitor control center visibility to enable/disable bluetooth scanning
|
||||
onControlCenterVisibleChanged: {
|
||||
console.log("Control center", controlCenterVisible ? "opened" : "closed")
|
||||
BluetoothService.enableMonitoring(controlCenterVisible)
|
||||
}
|
||||
property bool batteryPopupVisible: false
|
||||
property bool powerMenuVisible: false
|
||||
property bool powerConfirmVisible: false
|
||||
@@ -58,52 +50,11 @@ ShellRoot {
|
||||
property string powerConfirmMessage: ""
|
||||
property bool settingsVisible: false
|
||||
|
||||
// Network properties from NetworkService
|
||||
property string networkStatus: NetworkService.networkStatus
|
||||
property string ethernetIP: NetworkService.ethernetIP
|
||||
property string ethernetInterface: NetworkService.ethernetInterface
|
||||
property bool ethernetConnected: NetworkService.ethernetConnected
|
||||
property string wifiIP: NetworkService.wifiIP
|
||||
property bool bluetoothEnabled: BluetoothService.bluetoothEnabled
|
||||
property bool bluetoothAvailable: BluetoothService.bluetoothAvailable
|
||||
property bool wifiEnabled: NetworkService.wifiEnabled
|
||||
property bool wifiAvailable: NetworkService.wifiAvailable
|
||||
property bool wifiToggling: NetworkService.wifiToggling
|
||||
property bool changingNetworkPreference: NetworkService.changingPreference
|
||||
|
||||
// WiFi properties from WifiService
|
||||
property string wifiSignalStrength: WifiService.wifiSignalStrength
|
||||
property string currentWifiSSID: WifiService.currentWifiSSID
|
||||
property var wifiNetworks: WifiService.wifiNetworks
|
||||
property var savedWifiNetworks: WifiService.savedWifiNetworks
|
||||
property bool wifiScanning: WifiService.isScanning
|
||||
|
||||
// Audio properties from AudioService
|
||||
property int volumeLevel: AudioService.volumeLevel
|
||||
property bool volumeMuted: AudioService.sinkMuted
|
||||
property var audioSinks: AudioService.audioSinks
|
||||
property string currentAudioSink: AudioService.currentAudioSink
|
||||
|
||||
// Microphone properties from AudioService
|
||||
property int micLevel: AudioService.micLevel
|
||||
property var audioSources: AudioService.audioSources
|
||||
property string currentAudioSource: AudioService.currentAudioSource
|
||||
|
||||
// Bluetooth properties from BluetoothService
|
||||
property var bluetoothDevices: BluetoothService.bluetoothDevices
|
||||
|
||||
// Brightness properties from BrightnessService
|
||||
property int brightnessLevel: BrightnessService.brightnessLevel
|
||||
|
||||
// Calendar properties from CalendarService
|
||||
property bool calendarAvailable: CalendarService.khalAvailable
|
||||
property var calendarEvents: CalendarService.eventsByDate
|
||||
|
||||
// WiFi password dialog
|
||||
property bool wifiPasswordDialogVisible: false
|
||||
property string wifiPasswordSSID: ""
|
||||
property string wifiPasswordInput: ""
|
||||
property string wifiConnectionStatus: WifiService.connectionStatus
|
||||
property bool wifiAutoRefreshEnabled: false
|
||||
|
||||
// Wallpaper error status
|
||||
@@ -116,8 +67,6 @@ ShellRoot {
|
||||
property bool isMediumScreen: screenWidth >= 1200 && screenWidth < 1600
|
||||
property bool isLargeScreen: screenWidth >= 1600
|
||||
|
||||
// Weather data from WeatherService
|
||||
property var weather: WeatherService.weather
|
||||
|
||||
// Weather configuration
|
||||
|
||||
@@ -171,19 +120,6 @@ ShellRoot {
|
||||
modelData: item
|
||||
|
||||
// Connect shell properties
|
||||
hasActiveMedia: root.hasActiveMedia
|
||||
activePlayer: root.activePlayer
|
||||
weatherAvailable: root.weather.available
|
||||
weatherCode: root.weather.wCode
|
||||
weatherTemp: root.weather.temp
|
||||
weatherTempF: root.weather.tempF
|
||||
osLogo: root.osLogo
|
||||
networkStatus: root.networkStatus
|
||||
wifiSignalStrength: root.wifiSignalStrength
|
||||
volumeLevel: root.volumeLevel
|
||||
volumeMuted: root.volumeMuted
|
||||
bluetoothAvailable: root.bluetoothAvailable
|
||||
bluetoothEnabled: root.bluetoothEnabled
|
||||
shellRoot: root
|
||||
notificationCount: NotificationService.notifications.length
|
||||
processDropdown: processListDropdown
|
||||
|
||||
Reference in New Issue
Block a user