Skip to content

Commit

Permalink
Improved styles in the loading page
Browse files Browse the repository at this point in the history
  • Loading branch information
imaluengo committed Dec 4, 2016
1 parent d39395e commit 3bdd925
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
7 changes: 3 additions & 4 deletions survos/widgets/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,15 +477,14 @@ class HeaderLabel(QtGui.QLabel):

def __init__(self, text, parent=None, height=30,
bgcolor='#6194BC', color='#fefefe', bradius=0,
bsides=0, fontsize=15):
bsides=0, fontsize=15, margin=0, padding=0):
super(HeaderLabel, self).__init__(text, parent=parent)
self.setMinimumHeight(height)
self.setAlignment(QtCore.Qt.AlignHCenter | QtCore.Qt.AlignVCenter)
self.setStyleSheet('background-color: {}; color: {};'
'font-weight: bold; font-size: {}px;'
'border-radius: {}px;'
.format(bgcolor, color, fontsize,
bsides, bsides, bradius))
'border-radius: {}px; margin: {}px; padding: {}px'
.format(bgcolor, color, fontsize,bsides,margin,padding))

class SubHeaderLabel(HeaderLabel):

Expand Down
10 changes: 5 additions & 5 deletions survos/widgets/preloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from ..qt_compat import QtGui, QtCore

from .base import HWidgets
from .base import HWidgets, HeaderLabel

class RefContainer(QtGui.QWidget):

Expand Down Expand Up @@ -68,9 +68,9 @@ def __init__(self, parent=None):
'}')
main_layout.addWidget(container)

title = QtGui.QLabel('<b>SuRVoS</b>: <u>Su</u>per-<u>R</u>egion '
'<u>Vo</u>lume <u>S</u>egmentation workbench')
title.setStyleSheet('font-size: 24pt; color: #6194BC; margin: 30px;')
title = HeaderLabel('<b>SuRVoS</b>: <u>Su</u>per-<u>R</u>egion '
'<u>Vo</u>lume <u>S</u>egmentation workbench',
fontsize=28, padding=30, margin=5)
vbox.addWidget(title)

ref1 = RefContainer('Source Repository',
Expand All @@ -89,7 +89,7 @@ def __init__(self, parent=None):

self.open = PreButton('Open Dataset',
'Load an existing dataset of supported file formats:'
'\n\nIMOD (.mrc, .rec), HDF5 (.h5, .hdf5)'
'\n\nMRC (.mrc, .rec), HDF5 (.h5, .hdf5)'
', Tiff Stacks (.tif, .tiff)', parent=self)
self.open.setFixedWidth(300)
self.open.setFixedHeight(250)
Expand Down

0 comments on commit 3bdd925

Please sign in to comment.