Commit e83227b8 authored by shibakaneki's avatar shibakaneki

Stylized a bit the UI

parent 490b1be9
...@@ -322,5 +322,9 @@ ...@@ -322,5 +322,9 @@
<file>style.qss</file> <file>style.qss</file>
<file>images/cache_circle.png</file> <file>images/cache_circle.png</file>
<file>images/cache_square.png</file> <file>images/cache_square.png</file>
<file>images/down_arrow.png</file>
<file>images/up_arrow.png</file>
<file>images/left_arrow.png</file>
<file>images/right_arrow.png</file>
</qresource> </qresource>
</RCC> </RCC>
QWidget#DockPaletteWidgetBox, QWidget#documentNavigator QWidget#DockPaletteWidgetBox,
QWidget#documentNavigator,
QWidget#UBLibraryWidget,
QWidget#UBLibPathViewer
{ {
background: #EEEEEE; background: #EEEEEE;
border-radius: 10px; border-radius: 10px;
border: 2px solid #999999; border: 2px solid #999999;
/* padding-bottom: -2px; */
} }
QColorDialog QColorDialog
...@@ -32,6 +36,95 @@ QPushButton#DockPaletteWidgetButton::checked ...@@ -32,6 +36,95 @@ QPushButton#DockPaletteWidgetButton::checked
background-color: #BBBBBB; background-color: #BBBBBB;
} }
QScrollBar::vertical
{
background:transparent;
margin: 23px 1px 25px 1px;
}
QScrollBar::handle:vertical
{
border: 2px solid #999999;
border-radius:6px;
background:#BBBBBB;
min-height:40px;
}
QScrollBar::add-line:vertical
{
image:url(:/images/down_arrow.png);
height:16px;
background:#BBBBBB;
border:2px solid #999999;
border-radius:6px;
margin: 1px 1px 4px 1px;
subcontrol-position:bottom;
subcontrol-origin:margin;
}
QScrollBar::sub-line:vertical
{
image:url(:/images/up_arrow.png);
height:16px;
background:#BBBBBB;
border:2px solid #999999;
border-radius:6px;
margin: 2px 1px 1px 1px;
subcontrol-position:top;
subcontrol-origin:margin;
}
QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical
{
background:transparent;
}
QScrollBar::horizontal
{
background:transparent;
margin: 1px 23px 1px 25px;
}
QScrollBar::handle:horizontal
{
border: 2px solid #999999;
border-radius:6px;
background:#BBBBBB;
min-width:40px;
}
QScrollBar::add-line:horizontal
{
image:url(:/images/right_arrow.png);
width:16px;
background:#BBBBBB;
border:2px solid #999999;
border-radius:6px;
margin: 1px 1px 1px 4px;
subcontrol-position:right;
subcontrol-origin:margin;
}
QScrollBar::sub-line:horizontal
{
image:url(:/images/left_arrow.png);
width:16px;
background:#BBBBBB;
border:2px solid #999999;
border-radius:6px;
margin: 1px 2px 1px 1px;
subcontrol-position:left;
subcontrol-origin:margin;
}
QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal
{
background:transparent;
}
QSlider::handle::horizontal QSlider::handle::horizontal
{ {
background-color:#EEEEEE; background-color:#EEEEEE;
......
...@@ -51,6 +51,8 @@ UBDocumentNavigator::UBDocumentNavigator(QWidget *parent, const char *name):QGra ...@@ -51,6 +51,8 @@ UBDocumentNavigator::UBDocumentNavigator(QWidget *parent, const char *name):QGra
setScene(mScene); setScene(mScene);
mThumbnailWidth = width() - 2*border(); mThumbnailWidth = width() - 2*border();
setFrameShadow(QFrame::Plain);
connect(UBApplication::boardController, SIGNAL(activeSceneChanged()), this, SLOT(addNewPage())); connect(UBApplication::boardController, SIGNAL(activeSceneChanged()), this, SLOT(addNewPage()));
connect(mScene, SIGNAL(selectionChanged()), this, SLOT(onSelectionChanged())); connect(mScene, SIGNAL(selectionChanged()), this, SLOT(onSelectionChanged()));
} }
......
...@@ -37,7 +37,6 @@ UBLibPathViewer::UBLibPathViewer(QWidget *parent, const char *name):QGraphicsVie ...@@ -37,7 +37,6 @@ UBLibPathViewer::UBLibPathViewer(QWidget *parent, const char *name):QGraphicsVie
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOn); setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
setAcceptDrops(true); setAcceptDrops(true);
setStyleSheet(QString("QGraphicsView{background:#EEEEEE; border-radius:10px; border:2px solid #999999;}"));
mpScene = new UBPathScene(this); mpScene = new UBPathScene(this);
setScene(mpScene); setScene(mpScene);
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include "UBLibWidget.h" #include "UBLibWidget.h"
#include "core/memcheck.h" #include "core/memcheck.h"
#include "core/UBApplication.h"
/** /**
* \brief Constructor * \brief Constructor
...@@ -31,6 +32,10 @@ UBLibWidget::UBLibWidget(QWidget *parent, const char *name):UBDockPaletteWidget( ...@@ -31,6 +32,10 @@ UBLibWidget::UBLibWidget(QWidget *parent, const char *name):UBDockPaletteWidget(
{ {
setObjectName(name); setObjectName(name);
mName = "LibWidget"; mName = "LibWidget";
setAttribute(Qt::WA_StyledBackground, true);
setStyleSheet(UBApplication::globalStyleSheet());
mIconToLeft = QPixmap(":images/library_open.png"); mIconToLeft = QPixmap(":images/library_open.png");
mIconToRight = QPixmap(":images/library_close.png"); mIconToRight = QPixmap(":images/library_close.png");
setAcceptDrops(true); setAcceptDrops(true);
......
...@@ -37,7 +37,6 @@ UBLibraryWidget::UBLibraryWidget(QWidget *parent, const char *name):UBThumbnailW ...@@ -37,7 +37,6 @@ UBLibraryWidget::UBLibraryWidget(QWidget *parent, const char *name):UBThumbnailW
{ {
setObjectName(name); setObjectName(name);
setSpacing(5); setSpacing(5);
setStyleSheet(QString("background: #EEEEEE; border-radius : 10px; border : 2px solid #999999;"));
mLibraryController = new UBLibraryController(parentWidget()); mLibraryController = new UBLibraryController(parentWidget());
} }
......
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