Browse Source

Added new default font; the same as in the Tangra site

Signed-off-by: Blagovest Petrov <blagovest@petrovs.info>
pull/5/head
Blagovest Petrov 4 years ago
parent
commit
c46685d4ba
  1. 6
      AboutProgram.qml
  2. BIN
      Resources/KellySlab-Regular.ttf
  3. 4
      main.qml
  4. 1
      qml.qrc

6
AboutProgram.qml

@ -21,7 +21,7 @@ Dialog {
id: element id: element
x: 0 x: 0
y: 8 y: 8
text: qsTr("TangraPlay v0.1 Alpha") text: qsTr("TangraPlay v0.5 Beta")
font.bold: true font.bold: true
font.pixelSize: 33 font.pixelSize: 33
} }
@ -33,6 +33,7 @@ Dialog {
width: 216 width: 216
height: 61 height: 61
text: qsTr("(Винаги съм искал да направя софтуер с диалогов прозорец като mIRC )") text: qsTr("(Винаги съм искал да направя софтуер с диалогов прозорец като mIRC )")
font.family: mainfont.name
wrapMode: Text.WrapAtWordBoundaryOrAnywhere wrapMode: Text.WrapAtWordBoundaryOrAnywhere
elide: Text.ElideLeft elide: Text.ElideLeft
font.pixelSize: 12 font.pixelSize: 12
@ -45,6 +46,7 @@ Dialog {
width: 354 width: 354
height: 36 height: 36
text: qsTr("© 2020 Благовест Петров ( https://petrovs.info ) . Кодът е лиценциран под GNU GPV v3.0. ") text: qsTr("© 2020 Благовест Петров ( https://petrovs.info ) . Кодът е лиценциран под GNU GPV v3.0. ")
font.family: mainfont.name
wrapMode: Text.WrapAtWordBoundaryOrAnywhere wrapMode: Text.WrapAtWordBoundaryOrAnywhere
font.pixelSize: 12 font.pixelSize: 12
} }
@ -56,6 +58,7 @@ Dialog {
width: 354 width: 354
height: 36 height: 36
text: qsTr("Всички лога, графики и името \"Tangra Mega Rock\" са собственост на радио Тангра.") text: qsTr("Всички лога, графики и името \"Tangra Mega Rock\" са собственост на радио Тангра.")
font.family: mainfont.name
font.pixelSize: 12 font.pixelSize: 12
wrapMode: Text.WrapAtWordBoundaryOrAnywhere wrapMode: Text.WrapAtWordBoundaryOrAnywhere
} }
@ -67,6 +70,7 @@ Dialog {
width: 354 width: 354
height: 36 height: 36
text: qsTr("Този софтуер e направен напълно с некомерсиална цел не е свързан по никакъв начин с Рок Радио Tangra Mega Rock") text: qsTr("Този софтуер e направен напълно с некомерсиална цел не е свързан по никакъв начин с Рок Радио Tangra Mega Rock")
font.family: mainfont.name
font.pixelSize: 12 font.pixelSize: 12
wrapMode: Text.WrapAtWordBoundaryOrAnywhere wrapMode: Text.WrapAtWordBoundaryOrAnywhere
} }

BIN
Resources/KellySlab-Regular.ttf

Binary file not shown.

4
main.qml

@ -11,6 +11,8 @@ Window {
height: 480 height: 480
flags: Qt.FramelessWindowHint flags: Qt.FramelessWindowHint
FontLoader { id: mainfont; source: "Resources/KellySlab-Regular.ttf" }
SystemTrayIcon { SystemTrayIcon {
visible: true visible: true
icon.source: "Resources/tangra.ico" icon.source: "Resources/tangra.ico"
@ -118,6 +120,7 @@ Window {
id: appTitle id: appTitle
anchors.left: buttonMinimize.right anchors.left: buttonMinimize.right
text: qsTr("TangraPlay") text: qsTr("TangraPlay")
font.family: mainfont.name
font.pixelSize: 20 font.pixelSize: 20
font.bold: true font.bold: true
color: "#f9c620" color: "#f9c620"
@ -201,6 +204,7 @@ Window {
y: 455 y: 455
text: qsTr("Относно програмата") text: qsTr("Относно програмата")
font.pixelSize: 12 font.pixelSize: 12
font.family: mainfont.name
color: "#f9c620" color: "#f9c620"
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent

1
qml.qrc

@ -13,5 +13,6 @@
<file>AboutProgram.qml</file> <file>AboutProgram.qml</file>
<file>Resources/blago.png</file> <file>Resources/blago.png</file>
<file>Resources/tangra.ico</file> <file>Resources/tangra.ico</file>
<file>Resources/KellySlab-Regular.ttf</file>
</qresource> </qresource>
</RCC> </RCC>

Loading…
Cancel
Save