Skip to content

Commit

Permalink
Qt GUI: Size Defaults Corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostlander committed May 1, 2016
1 parent cb26772 commit b01194c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/qt/bitcoingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,17 @@ BitcoinGUI::BitcoinGUI(QWidget *parent):
if(nQtStyle < 0) nQtStyle = 0;

if(!nQtStyle) {
resize(850, 575);
qApp->setStyleSheet("QToolBar QToolButton { text-align: left; \
padding-left: 0px; padding-right: 0px; padding-top: 3px; padding-bottom: 3px; }");
} else if(nQtStyle == 1) {
resize(1000, 525);
qApp->setStyleSheet("QToolBar QToolButton { text-align: center; width: 100%; \
padding-left: 5px; padding-right: 5px; padding-top: 2px; padding-bottom: 2px; } \
QToolBar QToolButton:hover { font-weight: bold; } \
#toolbar { border: none; height: 100%; min-width: 150px; max-width: 150px; }");
} else {
resize(1000, 525);
qApp->setStyleSheet("QToolBar QToolButton { text-align: center; width: 100%; \
color: white; background-color: darkgreen; padding-left: 5px; padding-right: 5px; \
padding-top: 2px; padding-bottom: 2px; } \
Expand Down
4 changes: 2 additions & 2 deletions src/qt/forms/addressbookpage.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>760</width>
<height>380</height>
<width>850</width>
<height>475</height>
</rect>
</property>
<property name="windowTitle">
Expand Down
4 changes: 2 additions & 2 deletions src/qt/forms/overviewpage.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>874</width>
<height>690</height>
<width>850</width>
<height>475</height>
</rect>
</property>
<property name="windowTitle">
Expand Down
2 changes: 1 addition & 1 deletion src/qt/forms/sendcoinsdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>850</width>
<height>400</height>
<height>475</height>
</rect>
</property>
<property name="windowTitle">
Expand Down

0 comments on commit b01194c

Please sign in to comment.