Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
e83227b8
Commit
e83227b8
authored
Sep 13, 2011
by
shibakaneki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stylized a bit the UI
parent
490b1be9
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
105 additions
and
3 deletions
+105
-3
down_arrow.png
resources/images/down_arrow.png
+0
-0
left_arrow.png
resources/images/left_arrow.png
+0
-0
right_arrow.png
resources/images/right_arrow.png
+0
-0
up_arrow.png
resources/images/up_arrow.png
+0
-0
sankore.qrc
resources/sankore.qrc
+4
-0
style.qss
resources/style.qss
+94
-1
UBDocumentNavigator.cpp
src/gui/UBDocumentNavigator.cpp
+2
-0
UBLibPathViewer.cpp
src/gui/UBLibPathViewer.cpp
+0
-1
UBLibWidget.cpp
src/gui/UBLibWidget.cpp
+5
-0
UBLibraryWidget.cpp
src/gui/UBLibraryWidget.cpp
+0
-1
No files found.
resources/images/down_arrow.png
0 → 100644
View file @
e83227b8
258 Bytes
resources/images/left_arrow.png
0 → 100644
View file @
e83227b8
258 Bytes
resources/images/right_arrow.png
0 → 100644
View file @
e83227b8
256 Bytes
resources/images/up_arrow.png
0 → 100644
View file @
e83227b8
238 Bytes
resources/sankore.qrc
View file @
e83227b8
...
...
@@ -322,5 +322,9 @@
<file>style.qss</file>
<file>images/cache_circle.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>
</RCC>
resources/style.qss
View file @
e83227b8
QWidget#DockPaletteWidgetBox, QWidget#documentNavigator
QWidget#DockPaletteWidgetBox,
QWidget#documentNavigator,
QWidget#UBLibraryWidget,
QWidget#UBLibPathViewer
{
background: #EEEEEE;
border-radius: 10px;
border: 2px solid #999999;
/* padding-bottom: -2px; */
}
QColorDialog
...
...
@@ -32,6 +36,95 @@ QPushButton#DockPaletteWidgetButton::checked
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
{
background-color:#EEEEEE;
...
...
src/gui/UBDocumentNavigator.cpp
View file @
e83227b8
...
...
@@ -51,6 +51,8 @@ UBDocumentNavigator::UBDocumentNavigator(QWidget *parent, const char *name):QGra
setScene
(
mScene
);
mThumbnailWidth
=
width
()
-
2
*
border
();
setFrameShadow
(
QFrame
::
Plain
);
connect
(
UBApplication
::
boardController
,
SIGNAL
(
activeSceneChanged
()),
this
,
SLOT
(
addNewPage
()));
connect
(
mScene
,
SIGNAL
(
selectionChanged
()),
this
,
SLOT
(
onSelectionChanged
()));
}
...
...
src/gui/UBLibPathViewer.cpp
View file @
e83227b8
...
...
@@ -37,7 +37,6 @@ UBLibPathViewer::UBLibPathViewer(QWidget *parent, const char *name):QGraphicsVie
setVerticalScrollBarPolicy
(
Qt
::
ScrollBarAlwaysOff
);
setHorizontalScrollBarPolicy
(
Qt
::
ScrollBarAlwaysOn
);
setAcceptDrops
(
true
);
setStyleSheet
(
QString
(
"QGraphicsView{background:#EEEEEE; border-radius:10px; border:2px solid #999999;}"
));
mpScene
=
new
UBPathScene
(
this
);
setScene
(
mpScene
);
...
...
src/gui/UBLibWidget.cpp
View file @
e83227b8
...
...
@@ -16,6 +16,7 @@
#include "UBLibWidget.h"
#include "core/memcheck.h"
#include "core/UBApplication.h"
/**
* \brief Constructor
...
...
@@ -31,6 +32,10 @@ UBLibWidget::UBLibWidget(QWidget *parent, const char *name):UBDockPaletteWidget(
{
setObjectName
(
name
);
mName
=
"LibWidget"
;
setAttribute
(
Qt
::
WA_StyledBackground
,
true
);
setStyleSheet
(
UBApplication
::
globalStyleSheet
());
mIconToLeft
=
QPixmap
(
":images/library_open.png"
);
mIconToRight
=
QPixmap
(
":images/library_close.png"
);
setAcceptDrops
(
true
);
...
...
src/gui/UBLibraryWidget.cpp
View file @
e83227b8
...
...
@@ -37,7 +37,6 @@ UBLibraryWidget::UBLibraryWidget(QWidget *parent, const char *name):UBThumbnailW
{
setObjectName
(
name
);
setSpacing
(
5
);
setStyleSheet
(
QString
(
"background: #EEEEEE; border-radius : 10px; border : 2px solid #999999;"
));
mLibraryController
=
new
UBLibraryController
(
parentWidget
());
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment