fixed resolution dependency

This commit is contained in:
eximus
2017-05-02 00:46:35 +01:00
parent 8829c48ae4
commit 053f304dc0
2 changed files with 67 additions and 67 deletions

View File

@@ -53,24 +53,24 @@ Rectangle {
} }
// Set Background Video // Set Background Video
//MediaPlayer { MediaPlayer {
// id: mediaplayer id: mediaplayer
// autoPlay: true autoPlay: true
// muted: true muted: true
// playlist: Playlist { playlist: Playlist {
// id: playlist id: playlist
// playbackMode: Playlist.Random playbackMode: Playlist.Random
// onLoaded: { onLoaded: {
// mediaplayer.play() mediaplayer.play()
// } }
// } }
//} }
//VideoOutput { VideoOutput {
// fillMode: VideoOutput.PreserveAspectCrop fillMode: VideoOutput.PreserveAspectCrop
// anchors.fill: parent anchors.fill: parent
// source: mediaplayer source: mediaplayer
//} }
MouseArea { MouseArea {
anchors.fill: parent; anchors.fill: parent;
@@ -86,19 +86,30 @@ Rectangle {
anchors.fill: parent anchors.fill: parent
color: "transparent" color: "transparent"
Clock {
id: clock
y: parent.height * 0.60
color: "white"
anchors.left: parent.left
anchors.leftMargin: parent.width * 0.1
timeFont.family: textFont.name
dateFont.family: textFont.name
}
Rectangle { Rectangle {
id: login_container id: login_container
y: parent.height * 0.8 //852 //y: parent.height * 0.8
width: parent.width * 0.23 //445 y: clock.y + clock.height + 30
height: parent.height * 0.08 //82 width: clock.width
height: parent.height * 0.08
color: "transparent" color: "transparent"
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: 184 anchors.leftMargin: parent.width * 0.1
Rectangle { Rectangle {
id: username_row id: username_row
height: parent.height * 0.36 //30 height: parent.height * 0.36
color: "transparent" color: "transparent"
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: 0 anchors.leftMargin: 0
@@ -109,8 +120,8 @@ Rectangle {
Text { Text {
id: username_label id: username_label
width: 120 width: parent.width * 0.27
height: 20 height: parent.height * 0.66
horizontalAlignment: Text.AlignLeft horizontalAlignment: Text.AlignLeft
font.family: textFont.name font.family: textFont.name
font.bold: true font.bold: true
@@ -122,7 +133,7 @@ Rectangle {
TextBox { TextBox {
id: username_input_box id: username_input_box
height: 30 height: parent.height
text: userModel.lastUser text: userModel.lastUser
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
anchors.left: username_label.right anchors.left: username_label.right
@@ -146,13 +157,10 @@ Rectangle {
Text { Text {
id: error_message id: error_message
height: 30 height: parent.height
font.family: textFont.name font.family: textFont.name
font.pixelSize: 12 font.pixelSize: 12
color: "white" color: "white"
anchors.verticalCenter: parent.verticalCenter
anchors.right: username_input_box.right
anchors.rightMargin: 0
anchors.left: username_input_box.left anchors.left: username_input_box.left
anchors.leftMargin: 0 anchors.leftMargin: 0
} }
@@ -160,8 +168,8 @@ Rectangle {
Rectangle { Rectangle {
id: password_row id: password_row
y: 42 y: username_row.height + 10
height: 30 height: parent.height * 0.36
color: "transparent" color: "transparent"
anchors.right: parent.right anchors.right: parent.right
anchors.rightMargin: 0 anchors.rightMargin: 0
@@ -170,7 +178,7 @@ Rectangle {
Text { Text {
id: password_label id: password_label
width: 120 width: parent.width * 0.27
text: textConstants.password text: textConstants.password
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
horizontalAlignment: Text.AlignLeft horizontalAlignment: Text.AlignLeft
@@ -182,12 +190,12 @@ Rectangle {
PasswordBox { PasswordBox {
id: password_input_box id: password_input_box
height: 30 height: parent.height
font: textFont.name font: textFont.name
color: "#25000000" color: "#25000000"
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
anchors.right: parent.right anchors.right: parent.right
anchors.rightMargin: 30 anchors.rightMargin: parent.height // this sets button width, this way its a square
anchors.left: password_label.right anchors.left: password_label.right
anchors.leftMargin: 0 anchors.leftMargin: 0
borderColor: "transparent" borderColor: "transparent"
@@ -208,7 +216,7 @@ Rectangle {
Button { Button {
id: login_button id: login_button
height: 30 height: parent.height
color: "#393939" color: "#393939"
text: ">" text: ">"
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
@@ -231,23 +239,15 @@ Rectangle {
} }
Clock {
id: clock
y: 691
color: "white"
anchors.left: parent.left
anchors.leftMargin: 184
timeFont.family: textFont.name
dateFont.family: textFont.name
}
} }
// Top Bar // Top Bar
Rectangle { Rectangle {
id: actionBar id: actionBar
width: parent.width
height: parent.height * 0.04
anchors.top: parent.top; anchors.top: parent.top;
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
width: parent.width; height: 40
color: "transparent" color: "transparent"
Row { Row {

View File

@@ -1,4 +1,4 @@
# Aerial theme for sddm # Aerial theme for SDDM
SDDM theme with Apple TV Aerial videos SDDM theme with Apple TV Aerial videos
@@ -14,7 +14,7 @@ Havent tryed for other distros...
### Other notes ### Other notes
This theme streams the videos so internet connection is necessary. This theme streams the HD videos so a good internet connection is necessary.
If there is no active connection or the video can't be played the background will fallback to the image background.jpg If there is no active connection or the video can't be played the background will fallback to the image background.jpg
### Changing settings in `theme.conf.user` ### Changing settings in `theme.conf.user`