mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-18 17:18:43 +02:00
Replace login background SVGs with QML rectangles
This commit is contained in:
parent
f168385798
commit
7e9122e3d1
3 changed files with 10 additions and 10 deletions
|
@ -1,3 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xl="http://www.w3.org/1999/xlink" version="1.1" viewBox="367 137 597 597" width="597pt" height="597pt"><metadata xmlns:dc="http://purl.org/dc/elements/1.1/"><dc:date>2015-06-02 19:43Z</dc:date><!-- Produced by OmniGraffle Professional 5.4.4 --></metadata><defs></defs><g stroke="none" stroke-opacity="1" stroke-dasharray="none" fill="none" fill-opacity="1"><title>Canvas 1</title><g><title>Login Circle</title><path d="M 876.3199 224.28243 C 992.69666 340.65858 992.69666 529.34146 876.3199 645.7176 C 759.94376 762.09436 571.2609 762.09436 454.88474 645.7176 C 338.508 529.34146 338.508 340.65858 454.88474 224.28243 C 571.2609 107.905684 759.94376 107.905684 876.3199 224.28243" fill="#2c86b1" fill-opacity=".85"/></g></g></svg>
|
Before Width: | Height: | Size: 898 B |
|
@ -1,3 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xl="http://www.w3.org/1999/xlink" version="1.1" viewBox="372 232 589 371" width="589pt" height="371pt"><metadata xmlns:dc="http://purl.org/dc/elements/1.1/"><dc:date>2015-06-02 19:42Z</dc:date><!-- Produced by OmniGraffle Professional 5.4.4 --></metadata><defs></defs><g stroke="none" stroke-opacity="1" stroke-dasharray="none" fill="none" fill-opacity="1"><title>Canvas 1</title><g><title>Login2</title><path d="M 402.21426 232.07142 L 930.78574 232.07142 C 947.3543 232.07142 960.78574 245.50288 960.78574 262.07142 L 960.78574 572.9286 C 960.78574 589.49714 947.3543 602.9286 930.78574 602.9286 L 402.21426 602.9286 C 385.64572 602.9286 372.21426 589.49714 372.21426 572.9286 L 372.21426 262.07142 C 372.21426 245.50288 385.64572 232.07142 402.21426 232.07142 Z" fill="#2c86b1" fill-opacity=".85"/></g></g></svg>
|
Before Width: | Height: | Size: 983 B |
|
@ -48,12 +48,15 @@ Dialog {
|
|||
property int maximumY: parent ? parent.height - height : 0
|
||||
property real tan30: 0.577 // tan(30°)
|
||||
|
||||
Image {
|
||||
Rectangle {
|
||||
id: circularBackground
|
||||
visible: isCircular()
|
||||
source: "../images/login-circle.svg"
|
||||
width: loginDialog.inputWidth * 1.2
|
||||
height: width
|
||||
radius: width / 2
|
||||
|
||||
color: "#2c86b1"
|
||||
opacity: 0.85
|
||||
|
||||
Item {
|
||||
// Approximage circle with 3 rectangles that together contain the circle in a hexagon.
|
||||
|
@ -119,12 +122,15 @@ Dialog {
|
|||
}
|
||||
}
|
||||
|
||||
Image {
|
||||
Rectangle {
|
||||
id: rectangularBackground
|
||||
visible: !isCircular()
|
||||
source: "../images/login-rectangle.svg"
|
||||
width: loginDialog.inputWidth + loginDialog.borderWidth * 2
|
||||
height: loginDialog.inputHeight * 6 + loginDialog.closeMargin * 2
|
||||
radius: loginDialog.closeMargin * 2
|
||||
|
||||
color: "#2c86b1"
|
||||
opacity: 0.85
|
||||
|
||||
MouseArea {
|
||||
width: parent.width
|
||||
|
|
Loading…
Reference in a new issue