Stylized a bit the UI

preferencesAboutTextFull
shibakaneki 13 years ago
parent 490b1be9fc
commit e83227b896
  1. BIN
      resources/images/down_arrow.png
  2. BIN
      resources/images/left_arrow.png
  3. BIN
      resources/images/right_arrow.png
  4. BIN
      resources/images/up_arrow.png
  5. 4
      resources/sankore.qrc
  6. 95
      resources/style.qss
  7. 2
      src/gui/UBDocumentNavigator.cpp
  8. 1
      src/gui/UBLibPathViewer.cpp
  9. 5
      src/gui/UBLibWidget.cpp
  10. 1
      src/gui/UBLibraryWidget.cpp

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 B

@ -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>

@ -1,8 +1,12 @@
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
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
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
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 @@
#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(
{ {
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
{ {
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());
} }

Loading…
Cancel
Save