revisions

This commit is contained in:
pls.153 2022-03-10 09:38:17 +01:00
parent c275a0188d
commit 0cb972196e
4 changed files with 34 additions and 26 deletions

View file

@ -1,7 +1,8 @@
import QtQuick 2.15 import QtQuick 2.15
Item {
Rectangle { Rectangle {
radius: 50 anchors.fill: parent
color: Qt.lighter("red", 1.5) color: Qt.lighter("red", 1.5)
border.width: 10 border.width: 10
border.color: "red" border.color: "red"
@ -11,3 +12,4 @@ Rectangle {
text: "<h2>page 1</h2>" text: "<h2>page 1</h2>"
} }
} }
}

View file

@ -1,7 +1,9 @@
import QtQuick 2.15 import QtQuick 2.15
Item {
Rectangle { Rectangle {
radius: 50 anchors.fill: parent
radius: 100
color: Qt.lighter("green", 3.0) color: Qt.lighter("green", 3.0)
border.width: 10 border.width: 10
border.color: "green" border.color: "green"
@ -11,3 +13,4 @@ Rectangle {
text: "<h2>page 2</h2>" text: "<h2>page 2</h2>"
} }
} }
}

View file

@ -1,7 +1,11 @@
import QtQuick 2.15 import QtQuick 2.15
Item {
Rectangle { Rectangle {
radius: 50 anchors.centerIn: parent
width: Math.min(parent.width, parent.height)
height: width
radius: width
color: Qt.lighter("blue", 1.7) color: Qt.lighter("blue", 1.7)
border.width: 10 border.width: 10
border.color: "blue" border.color: "blue"
@ -11,3 +15,4 @@ Rectangle {
text: "<h2>page 3</h2>" text: "<h2>page 3</h2>"
} }
} }
}

View file

@ -54,7 +54,6 @@ Item {
padding: 2 padding: 2
textFormat: Text.PlainText textFormat: Text.PlainText
font.family: fontHack.name font.family: fontHack.name
font.pixelSize: 16
font.bold: mBold font.bold: mBold
text: mText text: mText
color: mColor color: mColor
@ -82,7 +81,6 @@ Item {
objectName: "repl_input" objectName: "repl_input"
width: repl.parent.width - 2 * back.width width: repl.parent.width - 2 * back.width
font.family: fontHack.name font.family: fontHack.name
font.pixelSize: 16
font.bold: true font.bold: true
color: "#c0c0c0" color: "#c0c0c0"
inputMethodHints: Qt.ImhNoAutoUppercase | Qt.ImhNoPredictiveText inputMethodHints: Qt.ImhNoAutoUppercase | Qt.ImhNoPredictiveText