...
 
Commits (4)
......@@ -40,11 +40,6 @@ ContainmentLayoutManager.ItemContainer {
Layout.minimumWidth: launcherGrid.cellWidth
Layout.minimumHeight: launcherGrid.cellHeight
leftPadding: units.smallSpacing * 2
topPadding: units.smallSpacing * 2
rightPadding: units.smallSpacing * 2
bottomPadding: units.smallSpacing * 2
opacity: dragActive ? 0.4 : 1
key: model.ApplicationStorageIdRole
......@@ -102,7 +97,13 @@ ContainmentLayoutManager.ItemContainer {
//preventStealing: true
ColumnLayout {
anchors.fill: parent
anchors {
fill: parent
leftMargin: units.smallSpacing * 2
topMargin: units.smallSpacing * 2
rightMargin: units.smallSpacing * 2
bottomMargin: units.smallSpacing * 2
}
spacing: 0
PlasmaCore.IconItem {
......@@ -127,8 +128,8 @@ ContainmentLayoutManager.ItemContainer {
visible: text.length > 0
Layout.fillWidth: true
Layout.leftMargin: -delegate.leftPadding
Layout.rightMargin: -delegate.rightPadding
Layout.leftMargin: -parent.anchors.leftMargin
Layout.rightMargin: -parent.anchors.rightMargin
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignTop
maximumLineCount: 2
......
......@@ -172,7 +172,7 @@ Item {
Column {
id: flickableContents
width: mainFlickable.width
spacing: Math.max(0, favoriteStrip.frame.height - mainFlickable.contentY)
spacing: Math.max(0, favoriteStrip.frame.height + favoriteStrip.anchors.bottomMargin - mainFlickable.contentY)
DragDrop.DropArea {
anchors {
......
......@@ -179,6 +179,7 @@ NanoShell.FullScreenOverlay {
}
MouseArea {
id: dismissArea
z: 2
width: parent.width
height: mainFlickable.contentHeight
onClicked: window.close();
......
......@@ -32,7 +32,9 @@ PlasmaCore.ColorScope {
height: 480
//colorGroup: PlasmaCore.Theme.ComplementaryColorGroup
Plasmoid.backgroundHints: plasmoid.configuration.PanelButtonsVisible ? PlasmaCore.Types.StandardBackground : PlasmaCore.Types.NoBackground
Plasmoid.backgroundHints: PlasmaCore.Types.NoBackground
readonly property bool showingApp: tasksModel.activeTask && tasksModel.activeTask.valid && !tasksModel.data(tasksModel.activeTask, TaskManager.AbstractTasksModel.IsFullScreen)
property QtObject taskSwitcher: taskSwitcherLoader.item ? taskSwitcherLoader.item : null
Loader {
......@@ -45,6 +47,16 @@ PlasmaCore.ColorScope {
onTriggered: taskSwitcherLoader.source = Qt.resolvedUrl("TaskSwitcher.qml")
}
TaskManager.TasksModel {
id: tasksModel
sortMode: TaskManager.TasksModel.SortVirtualDesktop
groupMode: TaskManager.TasksModel.GroupDisabled
screenGeometry: plasmoid.screenGeometry
filterByScreen: plasmoid.configuration.showForCurrentScreenOnly
}
MouseArea {
id: mainMouseArea
anchors.fill: parent
......@@ -88,12 +100,26 @@ PlasmaCore.ColorScope {
}
}
Rectangle {
Item {
anchors.fill: parent
color: root.backgroundColor
visible: plasmoid.configuration.PanelButtonsVisible
property Item toolBox
Rectangle {
anchors.fill: parent
color: root.backgroundColor
opacity: showingApp ? 1 : 0.9
Rectangle {
anchors {
left: parent.left
right: parent.right
top: parent.top
}
height: 1
color: PlasmaCore.ColorScope.textColor
opacity: 0.2
}
}
Button {
anchors.left: parent.left
......
......@@ -29,6 +29,9 @@
#include <TelepathyQt/ChannelClassSpec>
#include <TelepathyQt/ChannelFactory>
#include <TelepathyQt/Account>
#include <TelepathyQt/AccountSet>
#include <TelepathyQt/AccountManager>
#include <TelepathyQt/PendingReady>
#include <klocalizedstring.h>
#include <qcommandlineparser.h>
......@@ -136,11 +139,29 @@ int main(int argc, char **argv)
Tp::ClientRegistrarPtr registrar = Tp::ClientRegistrar::create(accountFactory, connectionFactory,
channelFactory, contactFactory);
QEventLoop loop;
Tp::AccountManagerPtr manager = Tp::AccountManager::create();
Tp::PendingReady *ready = manager->becomeReady();
QObject::connect(ready, &Tp::PendingReady::finished, &loop, &QEventLoop::quit);
loop.exec(QEventLoop::ExcludeUserInputEvents);
Tp::AccountPtr simAccount;
const Tp::AccountSetPtr accountSet = manager->validAccounts();
for (const Tp::AccountPtr &account : accountSet->accounts()) {
static const QStringList supportedProtocols = {
QLatin1String("ofono"),
QLatin1String("tel"),
};
if (supportedProtocols.contains(account->protocolName())) {
simAccount = account;
break;
}
}
Tp::AccountPtr simAccount = Tp::Account::create(TP_QT_ACCOUNT_MANAGER_BUS_NAME, QStringLiteral("/org/freedesktop/Telepathy/Account/ofono/ofono/account0"),
connectionFactory, channelFactory);
if (simAccount.isNull()) {
qCritical() << "Unable to get SIM account";
return -1;
}
const QString packagePath("org.kde.phone.dialer");
//usually we have an ApplicationWindow here, so we do not need to create a window by ourselves
......