introduce Layouter Debug mode
--really handy and beautiful in order to confirm the calculations that are valid. Already a bug was found for ParabolicEffect. There is 1px difference between hovering Tasks and Appletspull/15/head
parent
afb4279e09
commit
66f8cce6d9
@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2020 Michail Vourlakos <mvourlakos@gmail.com>
|
||||
*
|
||||
* This file is part of Latte-Dock
|
||||
*
|
||||
* Latte-Dock is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* Latte-Dock is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import QtQuick 2.0
|
||||
|
||||
Item {
|
||||
id: tag
|
||||
|
||||
width: _label.width + 4
|
||||
height: _label.height + 4
|
||||
|
||||
readonly property alias background: _background
|
||||
readonly property alias label: _label
|
||||
|
||||
Rectangle {
|
||||
id: _background
|
||||
anchors.fill: parent
|
||||
color: "black"
|
||||
}
|
||||
|
||||
Text {
|
||||
id: _label
|
||||
anchors.centerIn: parent
|
||||
text: " --- "
|
||||
color: "white"
|
||||
font.pointSize: 11
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue