Commit bb6847fb authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Layout cosmetics for crop UI.

parent 051aedcb
...@@ -93,6 +93,96 @@ static int DoControl( intf_thread_t *p_intf, void *p_win, int i_q, va_list a ) ...@@ -93,6 +93,96 @@ static int DoControl( intf_thread_t *p_intf, void *p_win, int i_q, va_list a )
MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf ) MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
{ {
QPalette palette;
QBrush brush(QColor(255, 0, 255, 255));
brush.setStyle(Qt::SolidPattern);
palette.setBrush(QPalette::Active, QPalette::WindowText, brush);
QBrush brush1(QColor(232, 23, 142, 255));
brush1.setStyle(Qt::SolidPattern);
palette.setBrush(QPalette::Active, QPalette::Button, brush1);
QBrush brush2(QColor(255, 251, 121, 255));
brush2.setStyle(Qt::SolidPattern);
palette.setBrush(QPalette::Active, QPalette::Light, brush2);
QBrush brush3(QColor(233, 235, 177, 255));
brush3.setStyle(Qt::SolidPattern);
palette.setBrush(QPalette::Active, QPalette::Midlight, brush3);
QBrush brush4(QColor(84, 25, 109, 255));
brush4.setStyle(Qt::SolidPattern);
palette.setBrush(QPalette::Active, QPalette::Dark, brush4);
QBrush brush5(QColor(103, 76, 183, 255));
brush5.setStyle(Qt::SolidPattern);
palette.setBrush(QPalette::Active, QPalette::Mid, brush5);
QBrush brush6(QColor(192, 75, 59, 255));
brush6.setStyle(Qt::SolidPattern);
palette.setBrush(QPalette::Active, QPalette::Text, brush6);
QBrush brush7(QColor(255, 170, 0, 255));
brush7.setStyle(Qt::SolidPattern);
palette.setBrush(QPalette::Active, QPalette::BrightText, brush7);
QBrush brush8(QColor(170, 38, 170, 255));
brush8.setStyle(Qt::SolidPattern);
palette.setBrush(QPalette::Active, QPalette::ButtonText, brush8);
QBrush brush9(QColor(144, 235, 255, 255));
brush9.setStyle(Qt::SolidPattern);
palette.setBrush(QPalette::Active, QPalette::Base, brush9);
QBrush brush10(QColor(225, 75, 255, 255));
brush10.setStyle(Qt::SolidPattern);
palette.setBrush(QPalette::Active, QPalette::Window, brush10);
QBrush brush11(QColor(51, 10, 61, 255));
brush11.setStyle(Qt::SolidPattern);
palette.setBrush(QPalette::Active, QPalette::Shadow, brush11);
QBrush brush12(QColor(15, 212, 38, 255));
brush12.setStyle(Qt::SolidPattern);
palette.setBrush(QPalette::Active, QPalette::Highlight, brush12);
QBrush brush13(QColor(227, 255, 148, 255));
brush13.setStyle(Qt::SolidPattern);
palette.setBrush(QPalette::Active, QPalette::HighlightedText, brush13);
QBrush brush14(QColor(174, 69, 111, 255));
brush14.setStyle(Qt::SolidPattern);
palette.setBrush(QPalette::Active, QPalette::Link, brush14);
QBrush brush15(QColor(155, 64, 64, 255));
brush15.setStyle(Qt::SolidPattern);
palette.setBrush(QPalette::Active, QPalette::LinkVisited, brush15);
QBrush brush16(QColor(245, 248, 49, 255));
brush16.setStyle(Qt::SolidPattern);
palette.setBrush(QPalette::Active, QPalette::AlternateBase, brush16);
palette.setBrush(QPalette::Inactive, QPalette::WindowText, brush);
palette.setBrush(QPalette::Inactive, QPalette::Button, brush1);
palette.setBrush(QPalette::Inactive, QPalette::Light, brush2);
palette.setBrush(QPalette::Inactive, QPalette::Midlight, brush3);
palette.setBrush(QPalette::Inactive, QPalette::Dark, brush4);
palette.setBrush(QPalette::Inactive, QPalette::Mid, brush5);
palette.setBrush(QPalette::Inactive, QPalette::Text, brush6);
palette.setBrush(QPalette::Inactive, QPalette::BrightText, brush7);
palette.setBrush(QPalette::Inactive, QPalette::ButtonText, brush8);
palette.setBrush(QPalette::Inactive, QPalette::Base, brush9);
palette.setBrush(QPalette::Inactive, QPalette::Window, brush10);
palette.setBrush(QPalette::Inactive, QPalette::Shadow, brush11);
palette.setBrush(QPalette::Inactive, QPalette::Highlight, brush12);
palette.setBrush(QPalette::Inactive, QPalette::HighlightedText, brush13);
palette.setBrush(QPalette::Inactive, QPalette::Link, brush14);
palette.setBrush(QPalette::Inactive, QPalette::LinkVisited, brush15);
palette.setBrush(QPalette::Inactive, QPalette::AlternateBase, brush16);
palette.setBrush(QPalette::Disabled, QPalette::WindowText, brush4);
palette.setBrush(QPalette::Disabled, QPalette::Button, brush1);
palette.setBrush(QPalette::Disabled, QPalette::Light, brush2);
palette.setBrush(QPalette::Disabled, QPalette::Midlight, brush3);
palette.setBrush(QPalette::Disabled, QPalette::Dark, brush4);
palette.setBrush(QPalette::Disabled, QPalette::Mid, brush5);
palette.setBrush(QPalette::Disabled, QPalette::Text, brush4);
palette.setBrush(QPalette::Disabled, QPalette::BrightText, brush7);
palette.setBrush(QPalette::Disabled, QPalette::ButtonText, brush4);
palette.setBrush(QPalette::Disabled, QPalette::Base, brush10);
palette.setBrush(QPalette::Disabled, QPalette::Window, brush10);
palette.setBrush(QPalette::Disabled, QPalette::Shadow, brush11);
QBrush brush17(QColor(214, 213, 211, 255));
brush17.setStyle(Qt::SolidPattern);
palette.setBrush(QPalette::Disabled, QPalette::Highlight, brush17);
palette.setBrush(QPalette::Disabled, QPalette::HighlightedText, brush13);
palette.setBrush(QPalette::Disabled, QPalette::Link, brush14);
palette.setBrush(QPalette::Disabled, QPalette::LinkVisited, brush15);
palette.setBrush(QPalette::Disabled, QPalette::AlternateBase, brush16);
setPalette( palette );
/* Variables initialisation */ /* Variables initialisation */
// need_components_update = false; // need_components_update = false;
bgWidget = NULL; bgWidget = NULL;
......
...@@ -332,7 +332,7 @@ ...@@ -332,7 +332,7 @@
<item row="0" column="2" > <item row="0" column="2" >
<widget class="QLabel" name="label_10" > <widget class="QLabel" name="label_10" >
<property name="text" > <property name="text" >
<string>_("top")</string> <string>_("Top")</string>
</property> </property>
</widget> </widget>
</item> </item>
...@@ -349,7 +349,7 @@ ...@@ -349,7 +349,7 @@
<item row="1" column="0" > <item row="1" column="0" >
<widget class="QLabel" name="label_11" > <widget class="QLabel" name="label_11" >
<property name="text" > <property name="text" >
<string>_("left")</string> <string>_("Left")</string>
</property> </property>
</widget> </widget>
</item> </item>
...@@ -366,7 +366,7 @@ ...@@ -366,7 +366,7 @@
<item row="1" column="4" > <item row="1" column="4" >
<widget class="QLabel" name="label_12" > <widget class="QLabel" name="label_12" >
<property name="text" > <property name="text" >
<string>_("right")</string> <string>_("Right")</string>
</property> </property>
</widget> </widget>
</item> </item>
...@@ -383,7 +383,7 @@ ...@@ -383,7 +383,7 @@
<item row="2" column="2" > <item row="2" column="2" >
<widget class="QLabel" name="label_7" > <widget class="QLabel" name="label_7" >
<property name="text" > <property name="text" >
<string>_("bottom")</string> <string>_("Bottom")</string>
</property> </property>
</widget> </widget>
</item> </item>
...@@ -411,6 +411,22 @@ ...@@ -411,6 +411,22 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="3" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout> </layout>
</widget> </widget>
<widget class="QWidget" name="tab_5" > <widget class="QWidget" name="tab_5" >
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment