Changeset View
Changeset View
Standalone View
Standalone View
sddm-theme/Main.qml
Show First 20 Lines • Show All 405 Lines • ▼ Show 20 Line(s) | 404 | ActionButton { | |||
---|---|---|---|---|---|
406 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","List Users") | 406 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","List Users") | ||
407 | onClicked: mainStack.pop() | 407 | onClicked: mainStack.pop() | ||
408 | visible: !inputPanel.keyboardActive | 408 | visible: !inputPanel.keyboardActive | ||
409 | } | 409 | } | ||
410 | ] | 410 | ] | ||
411 | } | 411 | } | ||
412 | } | 412 | } | ||
413 | 413 | | |||
414 | Image { | | |||
415 | id: logo | | |||
416 | visible: config.showlogo == "shown" | | |||
417 | source: config.logo | | |||
418 | anchors.horizontalCenter: parent.horizontalCenter | | |||
419 | anchors.bottom: footer.top | | |||
420 | anchors.bottomMargin: units.largeSpacing | | |||
421 | asynchronous: true | | |||
422 | sourceSize.height: height | | |||
423 | opacity: loginScreenRoot.uiVisible ? 0 : 1 | | |||
424 | fillMode: Image.PreserveAspectFit | | |||
425 | height: Math.round(units.gridUnit * 3.5) | | |||
426 | Behavior on opacity { | | |||
427 | OpacityAnimator { | | |||
428 | duration: units.longDuration | | |||
429 | easing.type: Easing.InOutQuad | | |||
430 | } | | |||
431 | } | | |||
432 | } | | |||
433 | | ||||
434 | DropShadow { | 414 | DropShadow { | ||
435 | id: logoShadow | 415 | id: logoShadow | ||
436 | anchors.fill: logo | 416 | anchors.fill: logo | ||
437 | source: logo | 417 | source: logo | ||
438 | visible: !softwareRendering && config.showlogo == "shown" | 418 | visible: !softwareRendering && config.showlogo == "shown" | ||
439 | horizontalOffset: 1 | 419 | horizontalOffset: 1 | ||
440 | verticalOffset: 1 | 420 | verticalOffset: 1 | ||
441 | radius: 6 | 421 | radius: 6 | ||
442 | samples: 14 | 422 | samples: 14 | ||
443 | spread: 0.3 | 423 | spread: 0.3 | ||
444 | color: "black" // matches Breeze window decoration and desktopcontainment | 424 | color: "black" // matches Breeze window decoration and desktopcontainment | ||
445 | opacity: loginScreenRoot.uiVisible ? 0 : 1 | 425 | opacity: loginScreenRoot.uiVisible ? 0 : 1 | ||
446 | Behavior on opacity { | 426 | Behavior on opacity { | ||
447 | OpacityAnimator { | 427 | //OpacityAnimator when starting from 0 is buggy (it shows one frame with opacity 1)" | ||
428 | PropertyAnimation { | ||||
429 | duration: units.longDuration | ||||
430 | easing.type: Easing.InOutQuad | ||||
431 | } | ||||
432 | } | ||||
433 | } | ||||
434 | | ||||
435 | Image { | ||||
436 | id: logo | ||||
437 | visible: config.showlogo == "shown" | ||||
438 | source: config.logo | ||||
439 | anchors.horizontalCenter: parent.horizontalCenter | ||||
440 | anchors.bottom: footer.top | ||||
441 | anchors.bottomMargin: units.largeSpacing | ||||
442 | asynchronous: true | ||||
443 | sourceSize.height: height | ||||
444 | opacity: loginScreenRoot.uiVisible ? 0 : 1 | ||||
445 | fillMode: Image.PreserveAspectFit | ||||
446 | height: Math.round(units.gridUnit * 3.5) | ||||
447 | Behavior on opacity { | ||||
448 | // OpacityAnimator when starting from 0 is buggy (it shows one frame with opacity 1)" | ||||
449 | PropertyAnimation { | ||||
mart: please use NumberAnimation
(it's the same as propertyaniation but goes trough a qvariant… | |||||
448 | duration: units.longDuration | 450 | duration: units.longDuration | ||
449 | easing.type: Easing.InOutQuad | 451 | easing.type: Easing.InOutQuad | ||
450 | } | 452 | } | ||
451 | } | 453 | } | ||
452 | } | 454 | } | ||
453 | 455 | | |||
454 | //Footer | 456 | //Footer | ||
455 | RowLayout { | 457 | RowLayout { | ||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |
please use NumberAnimation
(it's the same as propertyaniation but goes trough a qvariant conversion less, so i preferrable for animate properties of type int or real)