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,13 +1,15 @@
import QtQuick 2.15 import QtQuick 2.15
Rectangle { Item {
radius: 50 Rectangle {
color: Qt.lighter("red", 1.5) anchors.fill: parent
border.width: 10 color: Qt.lighter("red", 1.5)
border.color: "red" border.width: 10
border.color: "red"
Text { Text {
anchors.centerIn: parent anchors.centerIn: parent
text: "<h2>page 1</h2>" text: "<h2>page 1</h2>"
}
} }
} }

View file

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

View file

@ -1,13 +1,18 @@
import QtQuick 2.15 import QtQuick 2.15
Rectangle { Item {
radius: 50 Rectangle {
color: Qt.lighter("blue", 1.7)
border.width: 10
border.color: "blue"
Text {
anchors.centerIn: parent anchors.centerIn: parent
text: "<h2>page 3</h2>" width: Math.min(parent.width, parent.height)
height: width
radius: width
color: Qt.lighter("blue", 1.7)
border.width: 10
border.color: "blue"
Text {
anchors.centerIn: parent
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