[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [lightdm] themes/userbar/contents/ui: Make sure usernames do not overlap on userbar theme
From: Aurélien Gâteau <aurelien.gateau () canonical ! com>
Date: 2013-01-07 18:17:17
Message-ID: 20130107181717.A1787A6091 () git ! kde ! org
[Download RAW message or body]
Git commit 9b469238bc3845cc846d1c7f8e9fc7a27411a5f6 by Aur=C3=A9lien G=C3=
=A2teau.
Committed on 04/01/2013 at 17:47.
Pushed by gateau into branch 'master'.
Make sure usernames do not overlap on userbar theme
M +9 -5 themes/userbar/contents/ui/main.qml
http://commits.kde.org/lightdm/9b469238bc3845cc846d1c7f8e9fc7a27411a5f6
diff --git a/themes/userbar/contents/ui/main.qml b/themes/userbar/contents/=
ui/main.qml
index f4557d8..32d4242 100644
--- a/themes/userbar/contents/ui/main.qml
+++ b/themes/userbar/contents/ui/main.qml
@@ -16,7 +16,7 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with LightDM-KDE. If not, see <http://www.gnu.org/licenses/>.
*/
-import QtQuick 1.0
+import QtQuick 1.1
import org.kde.plasma.components 0.1 as PlasmaComponents
import org.kde.plasma.core 0.1 as PlasmaCore
import org.kde.lightdm 0.1 as LightDM
@@ -189,17 +189,21 @@ Item {
id: face
width: userFaceSize
height: userFaceSize
- anchors.bottom: loginText.top
+ anchors.top: parent.top
anchors.horizontalCenter: parent.horizontalCenter
- anchors.bottomMargin: padding * 1.5
source: imagePath
}
=
Text {
id: loginText
- anchors.bottom: parent.bottom
- anchors.horizontalCenter: parent.horizontalCenter
+ anchors.top: face.bottom
+ anchors.topMargin: padding * 1.5
+ width: parent.width
text: display
+ elide: Text.ElideRight
+ horizontalAlignment: Text.AlignHCenter
+ maximumLineCount: 2
+ wrapMode: Text.Wrap
}
=
MouseArea {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic