Import initial du projet shipheart_cm5
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import QtQuick 2.12
|
||||
|
||||
Rectangle {
|
||||
|
||||
property string titre
|
||||
property int hauteur
|
||||
|
||||
id: titre_1
|
||||
width: parent.width
|
||||
height: hauteur
|
||||
radius: 5
|
||||
color: "transparent"
|
||||
// color: couleur_green_yellow_transparent
|
||||
|
||||
Text {
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
text: titre
|
||||
color: shipheart_couleur_texte_titre_1
|
||||
font.pixelSize : 30
|
||||
font.weight: Font.Black
|
||||
font.capitalization: Font.SmallCaps
|
||||
anchors.verticalCenter: parent.verticalCenter // Centrage vertical sur la hauteur du titre reçu en paramètre
|
||||
anchors.left: parent.left // Nécessaire pour que le leftMargin suivant fonctionne
|
||||
anchors.leftMargin: 10
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user