mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-17 00:34:01 -04:00
35 lines
980 B
QML
35 lines
980 B
QML
pragma ComponentBehavior: Bound
|
|
|
|
import QtQuick
|
|
import qs.Common
|
|
import qs.Modules.DDash
|
|
|
|
DashTabFace {
|
|
id: root
|
|
|
|
activityId: "home"
|
|
entryId: DashRegistry.overviewId
|
|
tabComponent: Component {
|
|
OverviewTab {
|
|
live: root.live
|
|
editMode: root.editMode
|
|
rowBudget: root.controller.dashboardRowBudget
|
|
transientSurfaceTracker: root.controller.transientSurfaces
|
|
onTabRequested: id => {
|
|
switch (id) {
|
|
case "media":
|
|
root.controller.requestActivity("media", true, true);
|
|
break;
|
|
case "weather":
|
|
if (SettingsData.weatherEnabled)
|
|
root.controller.requestWeather(false);
|
|
break;
|
|
case "notifications":
|
|
root.controller.requestNotificationCenter(false);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|