diff options
author | Simon Rettberg | 2024-07-09 11:10:57 +0200 |
---|---|---|
committer | Simon Rettberg | 2024-07-09 11:10:57 +0200 |
commit | da74b8b4e7a622706ab9e9d9cacabd1662f0d74b (patch) | |
tree | 3a0ffe3d88219c0c00c3456751e58a35acb91143 /src/ui | |
parent | Support CoW, and selecting between edit and copy (diff) | |
download | vmchooser2-master.tar.gz vmchooser2-master.tar.xz vmchooser2-master.zip |
- Make image bg transparent, so the configured one can be seen with PNGs
- Allow specifying the header background as QSS using "background="
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/dialog.ui | 167 |
1 files changed, 98 insertions, 69 deletions
diff --git a/src/ui/dialog.ui b/src/ui/dialog.ui index 0e195ea..4e03ebc 100644 --- a/src/ui/dialog.ui +++ b/src/ui/dialog.ui @@ -35,73 +35,100 @@ <number>6</number> </property> <item> - <layout class="QHBoxLayout" name="title"> - <property name="spacing"> - <number>0</number> - </property> - <property name="bottomMargin"> - <number>0</number> + <widget class="QWidget" name="headerBg" native="true"> + <property name="styleSheet"> + <string notr="true">background: #fff;</string> </property> - <item> - <widget class="QLabel" name="label_l"> - <property name="minimumSize"> - <size> - <width>0</width> - <height>110</height> - </size> - </property> - <property name="styleSheet"> - <string notr="true">#label_l {background-color:#fff; -margin-left:1px; -margin-top:1px; -margin-bottom:0px;}</string> - </property> - <property name="frameShadow"> - <enum>QFrame::Plain</enum> - </property> - <property name="text"> - <string/> - </property> - <property name="pixmap"> - <pixmap>:/title_l</pixmap> - </property> - </widget> - </item> - <item> - <widget class="QLabel" name="label_r"> - <property name="minimumSize"> - <size> - <width>120</width> - <height>110</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>120</width> - <height>16777215</height> - </size> - </property> - <property name="styleSheet"> - <string notr="true">#label_r {background-color:#fff; -margin-top:1px; -margin-right:1px; -margin-bottom:0px;}</string> - </property> - <property name="frameShadow"> - <enum>QFrame::Plain</enum> - </property> - <property name="text"> - <string/> - </property> - <property name="pixmap"> - <pixmap>:/title_r</pixmap> - </property> - <property name="alignment"> - <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> - </property> - </widget> - </item> - </layout> + <layout class="QHBoxLayout" name="horizontalLayout"> + <property name="spacing"> + <number>0</number> + </property> + <property name="leftMargin"> + <number>0</number> + </property> + <property name="topMargin"> + <number>0</number> + </property> + <property name="rightMargin"> + <number>0</number> + </property> + <property name="bottomMargin"> + <number>0</number> + </property> + <item> + <widget class="QLabel" name="label_l"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>10</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>10</height> + </size> + </property> + <property name="frameShadow"> + <enum>QFrame::Plain</enum> + </property> + <property name="text"> + <string/> + </property> + <property name="pixmap"> + <pixmap resource="../images.qrc">:/title_l</pixmap> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_3"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QLabel" name="label_r"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>10</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>10</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>16777215</height> + </size> + </property> + <property name="frameShadow"> + <enum>QFrame::Plain</enum> + </property> + <property name="text"> + <string/> + </property> + <property name="pixmap"> + <pixmap resource="../images.qrc">:/title_r</pixmap> + </property> + <property name="alignment"> + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + </property> + </widget> + </item> + </layout> + </widget> </item> <item> <layout class="QHBoxLayout" name="help_news"> @@ -219,7 +246,7 @@ li.checked::marker { content: "\2612"; } <string>Local</string> </property> <property name="icon"> - <iconset> + <iconset resource="../images.qrc"> <normaloff>:/linux</normaloff>:/linux</iconset> </property> <property name="iconSize"> @@ -261,7 +288,7 @@ li.checked::marker { content: "\2612"; } <string>All Classes</string> </property> <property name="icon"> - <iconset> + <iconset resource="../images.qrc"> <normaloff>:/vm-mix</normaloff>:/vm-mix</iconset> </property> <property name="iconSize"> @@ -685,6 +712,8 @@ li.checked::marker { content: "\2612"; } <header>src/vmtree.h</header> </customwidget> </customwidgets> - <resources/> + <resources> + <include location="../images.qrc"/> + </resources> <connections/> </ui> |