Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.1:Staging:B
plasma5-desktop
0001-Place-toolbox-in-the-top-right-corner-of-t...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Place-toolbox-in-the-top-right-corner-of-the-screen.patch of Package plasma5-desktop
From 295cba58c8f0ccdf414df1e32ac31c4840835f53 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik <kde@privat.broulik.de> Date: Fri, 23 Feb 2018 11:37:02 +0100 Subject: [PATCH] Place toolbox in the top right corner of the screen This moves it out of the way of desktop icons and is also what Plasma 4 did. The code is adjusted to mirror the position for right-to-left languages. BUG: 390038 FIXED-IN: 5.13.0 Differential Revision: https://phabricator.kde.org/D10563 --- containments/desktop/package/contents/config/main.xml | 2 +- toolboxes/desktoptoolbox/contents/ui/ToolBoxRoot.qml | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) Index: plasma-desktop-5.12.8/containments/desktop/package/contents/config/main.xml =================================================================== --- plasma-desktop-5.12.8.orig/containments/desktop/package/contents/config/main.xml +++ plasma-desktop-5.12.8/containments/desktop/package/contents/config/main.xml @@ -20,7 +20,7 @@ </entry> <entry name="ToolBoxButtonState" type="String"> <label>Position state of the toolbox button.</label> - <default>topleft</default> + <default></default> </entry> <entry name="ToolBoxButtonX" type="int"> <label>X coordinate of the toolbox.</label> Index: plasma-desktop-5.12.8/toolboxes/desktoptoolbox/contents/ui/ToolBoxRoot.qml =================================================================== --- plasma-desktop-5.12.8.orig/toolboxes/desktoptoolbox/contents/ui/ToolBoxRoot.qml +++ plasma-desktop-5.12.8/toolboxes/desktoptoolbox/contents/ui/ToolBoxRoot.qml @@ -141,6 +141,16 @@ Item { } function placeToolBox(ts) { + // if nothing has been setup yet, determin default position based on layout direction + if (!ts) { + if (Qt.application.layoutDirection === Qt.RightToLeft) { + placeToolBox("topleft"); + } else { + placeToolBox("topright"); + } + return; + } + var tx = Plasmoid.configuration.ToolBoxButtonX var ty = Plasmoid.configuration.ToolBoxButtonY var pos;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor