44 lines
1.4 KiB
QML
44 lines
1.4 KiB
QML
import QtQuick 2.15
|
|
import QtQuick.Controls 2.15
|
|
import QtQuick.Layouts 1.11
|
|
import RibbonUI 1.0
|
|
|
|
Item {
|
|
id:control
|
|
implicitHeight: layout.implicitHeight
|
|
implicitWidth: 300
|
|
property real contentMargins: 20
|
|
|
|
ColumnLayout{
|
|
id:layout
|
|
anchors.centerIn: parent
|
|
width: parent.width
|
|
RibbonText{
|
|
Layout.preferredWidth: parent.width - leftPadding - rightPadding
|
|
font.pixelSize: 22
|
|
text: popup.targetList[popup.currentIndex].title
|
|
viewOnly: true
|
|
topPadding: contentMargins * 3 / 4
|
|
leftPadding: contentMargins
|
|
rightPadding: contentMargins
|
|
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
|
color: RibbonTheme.modernStyle ?
|
|
isDarkMode ? '#8AAAEB' : '#2C59B7' :
|
|
isDarkMode ? "white" : "black"
|
|
verticalAlignment: Text.AlignVCenter
|
|
}
|
|
RibbonText{
|
|
Layout.preferredWidth: parent.width - leftPadding - rightPadding
|
|
font.pixelSize: 13
|
|
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
|
verticalAlignment: Text.AlignVCenter
|
|
text: popup.targetList[popup.currentIndex].text
|
|
viewOnly: true
|
|
topPadding: contentMargins * 3 / 4
|
|
leftPadding: contentMargins
|
|
rightPadding: contentMargins
|
|
bottomPadding: contentMargins * 3 / 4
|
|
}
|
|
}
|
|
}
|