mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-21 18:54:01 -04:00
qs: add DankBar and DankDash compatibility shims
This commit is contained in:
@@ -9,12 +9,20 @@ Singleton {
|
||||
readonly property var _warned: ({})
|
||||
|
||||
function type(instance, oldName, newName, module) {
|
||||
_emit(instance, oldName, `${oldName} is deprecated and will be removed in a future release.`, `Replace it with ${newName} from ${module}.`);
|
||||
}
|
||||
|
||||
function module(instance, name, oldModule, newModule) {
|
||||
_emit(instance, oldModule, `${oldModule} is deprecated and will be removed in a future release.`, `Import ${name} from ${newModule} instead.`);
|
||||
}
|
||||
|
||||
function _emit(instance, subject, headline, advice) {
|
||||
const plugin = _owningPlugin(instance);
|
||||
const key = oldName + "@" + (plugin ? plugin.id : "");
|
||||
const key = subject + "@" + (plugin ? plugin.id : "");
|
||||
if (_warned[key])
|
||||
return;
|
||||
_warned[key] = true;
|
||||
const lines = [`${oldName} is deprecated and will be removed in a future release.`, `Replace it with ${newName} from ${module}.`];
|
||||
const lines = [headline, advice];
|
||||
if (plugin)
|
||||
lines.push(`Used by the "${plugin.name}" plugin (${plugin.id}, by ${plugin.author}). Contact the plugin author to update it.`);
|
||||
log.error(lines.join("\n "));
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.AppsDock {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "AppsDock", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.AudioVisualization {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "AudioVisualization", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.Battery {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "Battery", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.CapsLockIndicator {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "CapsLockIndicator", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.ClipboardButton {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "ClipboardButton", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.Clock {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "Clock", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.ColorPicker {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "ColorPicker", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.ControlCenterButton {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "ControlCenterButton", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.CpuMonitor {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "CpuMonitor", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.CpuTemperature {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "CpuTemperature", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.DWLLayout {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "DWLLayout", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.DiskUsage {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "DiskUsage", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.FocusedApp {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "FocusedApp", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.FocusedWindowContextMenu {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "FocusedWindowContextMenu", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.GpuTemperature {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "GpuTemperature", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.IdleInhibitor {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "IdleInhibitor", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.KeyboardLayoutName {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "KeyboardLayoutName", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.LauncherButton {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "LauncherButton", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.Media {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "Media", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.MediaLyricLine {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "MediaLyricLine", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.MonitorPill {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "MonitorPill", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.NetworkMonitor {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "NetworkMonitor", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.NotepadButton {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "NotepadButton", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.NotificationCenterButton {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "NotificationCenterButton", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.PowerMenuButton {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "PowerMenuButton", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.PrivacyIndicator {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "PrivacyIndicator", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.RamMonitor {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "RamMonitor", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.RunningApps {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "RunningApps", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.SystemTrayBar {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "SystemTrayBar", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.SystemUpdate {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "SystemUpdate", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.TrayItemIcon {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "TrayItemIcon", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.Vpn {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "Vpn", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.Weather {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "Weather", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DBar.Widgets as New
|
||||
|
||||
New.WorkspaceSwitcher {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "WorkspaceSwitcher", "qs.Modules.DankBar.Widgets", "qs.Modules.DBar.Widgets")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DDash as New
|
||||
|
||||
New.DDashPopout {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.type(shim, "DankDashPopout", "DDashPopout", "qs.Modules.DDash")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DDash as New
|
||||
|
||||
New.MediaPlayerTab {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "MediaPlayerTab", "qs.Modules.DankDash", "qs.Modules.DDash")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DDash.Overview as New
|
||||
|
||||
New.CalendarEventDetail {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "CalendarEventDetail", "qs.Modules.DankDash.Overview", "qs.Modules.DDash.Overview")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DDash.Overview as New
|
||||
|
||||
New.CalendarEventEditor {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "CalendarEventEditor", "qs.Modules.DankDash.Overview", "qs.Modules.DDash.Overview")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DDash.Overview as New
|
||||
|
||||
New.CalendarOverviewCard {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "CalendarOverviewCard", "qs.Modules.DankDash.Overview", "qs.Modules.DDash.Overview")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DDash.Overview as New
|
||||
|
||||
New.Card {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "Card", "qs.Modules.DankDash.Overview", "qs.Modules.DDash.Overview")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DDash.Overview as New
|
||||
|
||||
New.ClockCard {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "ClockCard", "qs.Modules.DankDash.Overview", "qs.Modules.DDash.Overview")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DDash.Overview as New
|
||||
|
||||
New.MediaOverviewCard {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "MediaOverviewCard", "qs.Modules.DankDash.Overview", "qs.Modules.DDash.Overview")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DDash.Overview as New
|
||||
|
||||
New.SystemMonitorCard {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "SystemMonitorCard", "qs.Modules.DankDash.Overview", "qs.Modules.DDash.Overview")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DDash.Overview as New
|
||||
|
||||
New.UserInfoCard {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "UserInfoCard", "qs.Modules.DankDash.Overview", "qs.Modules.DDash.Overview")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DDash.Overview as New
|
||||
|
||||
New.WeatherOverviewCard {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "WeatherOverviewCard", "qs.Modules.DankDash.Overview", "qs.Modules.DDash.Overview")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DDash as New
|
||||
|
||||
New.OverviewTab {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "OverviewTab", "qs.Modules.DankDash", "qs.Modules.DDash")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DDash as New
|
||||
|
||||
New.WallpaperTab {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "WallpaperTab", "qs.Modules.DankDash", "qs.Modules.DDash")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DDash as New
|
||||
|
||||
New.WeatherTab {
|
||||
id: shim
|
||||
Component.onCompleted: Deprecation.module(shim, "WeatherTab", "qs.Modules.DankDash", "qs.Modules.DDash")
|
||||
}
|
||||
Reference in New Issue
Block a user