Commit b2588104 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

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:
parent 87ddc2ee
......@@ -20,7 +20,7 @@
<entry name="ToolBoxButtonState" type="String">
<label>Position state of the toolbox button.</label>
<entry name="ToolBoxButtonX" type="int">
<label>X coordinate of the toolbox.</label>
......@@ -140,6 +140,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) {
} else {
var tx = Plasmoid.configuration.ToolBoxButtonX
var ty = Plasmoid.configuration.ToolBoxButtonY
var pos;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment