Changeset View
Changeset View
Standalone View
Standalone View
applets/systemtray/package/contents/ui/ExpandedRepresentation.qml
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | 57 | leftMargin: { | |||
---|---|---|---|---|---|
65 | 65 | | |||
66 | //applet open, no sidebar | 66 | //applet open, no sidebar | ||
67 | } else { | 67 | } else { | ||
68 | return 0; | 68 | return 0; | ||
69 | } | 69 | } | ||
70 | } | 70 | } | ||
71 | } | 71 | } | ||
72 | 72 | | |||
73 | text: activeApplet ? activeApplet.title : i18n("Status & Notifications") | 73 | visible: activeApplet | ||
74 | text: activeApplet.title || "" | ||||
74 | MouseArea { | 75 | MouseArea { | ||
75 | anchors.fill: parent | 76 | anchors.fill: parent | ||
76 | onClicked: { | 77 | onClicked: { | ||
77 | if (activeApplet) { | 78 | if (activeApplet) { | ||
78 | activeApplet.expanded = false; | 79 | activeApplet.expanded = false; | ||
79 | dialog.visible = true; | 80 | dialog.visible = true; | ||
80 | } | 81 | } | ||
81 | } | 82 | } | ||
82 | } | 83 | } | ||
83 | } | 84 | } | ||
85 | PlasmaExtras.Heading { | ||||
86 | id: noAppletHeading | ||||
87 | level: 1 | ||||
88 | anchors { | ||||
89 | left: parent.left | ||||
90 | top: parent.top | ||||
91 | right: parent.right | ||||
92 | topMargin: hiddenItemsView.visible ? units.smallSpacing : 0 | ||||
93 | leftMargin: hiddenItemsView.iconColumnWidth + units.largeSpacing; | ||||
94 | } | ||||
95 | text: i18n("Status & Notifications") | ||||
96 | visible: !heading.visible | ||||
97 | } | ||||
84 | 98 | | |||
85 | PlasmaCore.SvgItem { | 99 | PlasmaCore.SvgItem { | ||
86 | anchors { | 100 | anchors { | ||
87 | left: parent.left | 101 | left: parent.left | ||
88 | leftMargin: hiddenLayout.width | 102 | leftMargin: hiddenLayout.width | ||
89 | top: parent.top | 103 | top: parent.top | ||
90 | bottom: parent.bottom | 104 | bottom: parent.bottom | ||
91 | margins: -units.gridUnit | 105 | margins: -units.gridUnit | ||
Show All 9 Lines | 113 | svg: PlasmaCore.Svg { | |||
101 | imagePath: "widgets/line" | 115 | imagePath: "widgets/line" | ||
102 | } | 116 | } | ||
103 | } | 117 | } | ||
104 | 118 | | |||
105 | HiddenItemsView { | 119 | HiddenItemsView { | ||
106 | id: hiddenItemsView | 120 | id: hiddenItemsView | ||
107 | anchors { | 121 | anchors { | ||
108 | left: parent.left | 122 | left: parent.left | ||
109 | top: heading.bottom | 123 | top: noAppletHeading.bottom | ||
124 | topMargin: units.smallSpacing | ||||
110 | bottom: parent.bottom | 125 | bottom: parent.bottom | ||
111 | } | 126 | } | ||
112 | } | 127 | } | ||
113 | 128 | | |||
114 | PlasmoidPopupsContainer { | 129 | PlasmoidPopupsContainer { | ||
115 | id: container | 130 | id: container | ||
116 | anchors { | 131 | anchors { | ||
117 | left: parent.left | 132 | left: parent.left | ||
118 | right: parent.right | 133 | right: parent.right | ||
119 | top: heading.bottom | 134 | top: heading.bottom | ||
120 | bottom: parent.bottom | 135 | bottom: parent.bottom | ||
121 | leftMargin: hiddenItemsView.visible ? hiddenItemsView.iconColumnWidth + units.largeSpacing : 0 | 136 | leftMargin: hiddenItemsView.visible ? hiddenItemsView.iconColumnWidth + units.largeSpacing : 0 | ||
122 | } | 137 | } | ||
123 | } | 138 | } | ||
124 | } | 139 | } |