Compare commits

...

7 Commits

Author SHA1 Message Date
Jacopo De Simoi 258c8365b3 [Activities runner] Restore functionality 6 years ago
Jacopo De Simoi e89accce6e [Activities runner] Cleanup <QDebug> 6 years ago
Jacopo De Simoi d49faf7672 [lockscreen] Do not elide username 6 years ago
Jacopo De Simoi e4dd54c91c [notifications] HACK fix width 6 years ago
Jacopo De Simoi 2e2fd2b5ad [Krunner] HACK: hardcode the right width! 6 years ago
Jacopo De Simoi be2c31b60e [Krunner] Leaner look 6 years ago
Jacopo De Simoi fff10a746b Add shortcut to hide panel 6 years ago
  1. 4
      applets/notifications/package/contents/ui/global/Globals.qml
  2. 2
      lookandfeel/contents/components/UserDelegate.qml
  3. 15
      lookandfeel/contents/runcommand/RunCommand.qml
  4. 8
      runners/activities/activityrunner.cpp
  5. 6
      shell/panelview.cpp
  6. 2
      shell/panelview.h
  7. 28
      shell/shellcorona.cpp
  8. 5
      shell/shellcorona.h

@ -133,8 +133,8 @@ QtObject {
onFocusDialogChanged: positionPopups()
// The raw width of the popup's content item, the Dialog itself adds some margins
property int popupWidth: units.gridUnit * 18
property int popupEdgeDistance: units.largeSpacing * 2
property int popupWidth: 818
property int popupEdgeDistance: units.largeSpacing
property int popupSpacing: units.largeSpacing
// How much vertical screen real estate the notification popups may consume

@ -171,7 +171,7 @@ Item {
text: wrapper.name
style: softwareRendering ? Text.Outline : Text.Normal
styleColor: softwareRendering ? PlasmaCore.ColorScope.backgroundColor : "transparent" //no outline, doesn't matter
elide: Text.ElideRight
// elide: Text.ElideRight
horizontalAlignment: Text.AlignHCenter
//make an indication that this has active focus, this only happens when reached with keyboard navigation
font.underline: wrapper.activeFocus

@ -54,21 +54,21 @@ ColumnLayout {
Layout.alignment: Qt.AlignTop
PlasmaComponents.ToolButton {
iconSource: "configure"
visible: false
onClicked: {
runnerWindow.visible = false
runnerWindow.displayConfiguration()
}
Accessible.name: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Configure")
Accessible.description: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Configure Search Plugins")
visible: runnerWindow.canConfigure
tooltip: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Configure KRunner...")
tooltip: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Configure Krunner...")
}
PlasmaComponents.TextField {
id: queryField
property bool allowCompletion: false
clearButtonShown: true
Layout.minimumWidth: units.gridUnit * 25
Layout.minimumWidth: 818
activeFocusOnPress: true
placeholderText: results.runnerName ? i18ndc("plasma_lookandfeel_org.kde.lookandfeel",
@ -195,6 +195,7 @@ ColumnLayout {
}
PlasmaComponents.ToolButton {
iconSource: "window-close"
visible: false
onClicked: runnerWindow.visible = false
Accessible.name: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Close")
Accessible.description: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Close Search")
@ -270,9 +271,9 @@ ColumnLayout {
currentIndex = 0;
}
}
Keys.onReturnPressed: runCurrentIndex(event)
Keys.onEnterPressed: runCurrentIndex(event)
Keys.onReturnPressed: runCurrentIndex()
Keys.onEnterPressed: runCurrentIndex()
Keys.onTabPressed: {
if (currentIndex == listView.count-1) {
listView.nextItemInFocusChain(true).forceActiveFocus();
@ -298,7 +299,7 @@ ColumnLayout {
queryField.focus = true;
}
}
Keys.onUpPressed: decrementCurrentIndex()
Keys.onDownPressed: incrementCurrentIndex()

@ -18,7 +18,6 @@
#include "activityrunner.h"
#include <QDebug>
#include <QIcon>
#include <klocalizedstring.h>
@ -166,11 +165,14 @@ void ActivityRunner::addMatch(const KActivities::Info &activity, QList<Plasma::Q
void ActivityRunner::run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &match)
{
Q_UNUSED(context)
if (!m_enabled || !m_activities) {
if (!m_enabled) {
return;
}
if (!m_activities) {
m_activities = new KActivities::Controller(this);
}
m_activities->setCurrentActivity(match.data().toString());
}

@ -341,9 +341,9 @@ void PanelView::setBackgroundHints(Plasma::Types::BackgroundHints hint)
if (m_backgroundHints == hint) {
return;
}
m_backgroundHints = hint;
emit backgroundHintsChanged();
}
@ -576,7 +576,7 @@ void PanelView::restore()
// All the other values are read from screen independent values,
// but fallback on the screen independent section, as is the only place
// is safe to directly write during plasma startup, as there can be
// is safe to directly write during plasma startup, as there can be
// resolution changes
m_offset = readConfigValueWithFallBack("offset", m_offset);
if (m_alignment != Qt::AlignCenter) {

@ -81,7 +81,7 @@ class PanelView : public PlasmaQuick::ContainmentView
* support NoBackground in order to disable blur/contrast effects and remove
* the panel shadows
* @since 5.9
*/
*/
Q_PROPERTY(Plasma::Types::BackgroundHints backgroundHints WRITE setBackgroundHints READ backgroundHints NOTIFY backgroundHintsChanged)
/**

@ -167,6 +167,8 @@ ShellCorona::ShellCorona(QObject *parent)
connect(this, &ShellCorona::containmentAdded,
this, &ShellCorona::handleContainmentAdded);
QAction *dashboardAction = actions()->addAction(QStringLiteral("show dashboard"));
QObject::connect(dashboardAction, &QAction::triggered,
this, &ShellCorona::setDashboardShown);
@ -182,6 +184,21 @@ ShellCorona::ShellCorona(QObject *parent)
dashboardAction->setData(Plasma::Types::ControlAction);
KGlobalAccel::self()->setGlobalShortcut(dashboardAction, Qt::CTRL + Qt::Key_F12);
QAction *panelAction = actions()->addAction(QStringLiteral("show panel"));
QObject::connect(panelAction, &QAction::triggered,
this, &ShellCorona::togglePanelVisibility);
panelAction->setText(i18n("Toggle Panel"));
// connect(KWindowSystem::self(), &KWindowSystem::showingDesktopChanged, [panelAction](bool showing) {
// panelAction->setText(showing ? i18n("Hide Desktop") : i18n("Show Desktop"));
// panelAction->setChecked(showing);
// });
// panelAction->setAutoRepeat(true);
// panelAction->setCheckable(true);
// panelAction->setIcon(QIcon::fromTheme(QStringLiteral("panel-show")));
// panelAction->setData(Plasma::Types::ControlAction);
KGlobalAccel::self()->setGlobalShortcut(panelAction, Qt::CTRL + Qt::Key_F11);
checkAddPanelAction();
connect(KSycoca::self(), SIGNAL(databaseChanged(QStringList)), this, SLOT(checkAddPanelAction(QStringList)));
@ -1177,6 +1194,16 @@ QList<PanelView *> ShellCorona::panelsForScreen(QScreen *screen) const
return ret;
}
void ShellCorona::togglePanelVisibility()
{
for (auto it = m_panelViews.constBegin(), end = m_panelViews.constEnd(); it != end; ++it) {
if (it.value()->screen() != qGuiApp->primaryScreen()) {
continue;
}
it.value()->setVisible(!it.value()->isVisible());
}
}
DesktopView* ShellCorona::desktopForScreen(QScreen* screen) const
{
return m_desktopViewforId.value(m_screenPool->id(screen->name()));
@ -2222,4 +2249,3 @@ void ShellCorona::activateTaskManagerEntry(int index)
#include "moc_shellcorona.cpp"

@ -153,7 +153,7 @@ public Q_SLOTS:
void showInteractiveKWinConsole();
void loadKWinScriptInInteractiveConsole(const QString &script);
void toggleActivityManager();
void toggleWidgetExplorer();
void toggleWidgetExplorer();
void evaluateScript(const QString &string);
void activateLauncherMenu();
@ -202,6 +202,7 @@ protected Q_SLOTS:
void showAlternativesForApplet(Plasma::Applet *applet);
void togglePanelVisibility();
private Q_SLOTS:
void createWaitingPanels();
void handleContainmentAdded(Plasma::Containment *c);
@ -273,5 +274,3 @@ private:
};
#endif // SHELLCORONA_H

Loading…
Cancel
Save