[Pkg-owncloud-commits] [owncloud-client] 27/120: Settings dialog: Try to improve adherance to high contrast schemes
Sandro Knauß
hefee-guest at moszumanska.debian.org
Mon Aug 24 00:02:39 UTC 2015
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit fad9a3056cbea475cfa095bc086be2e4ded3364e
Author: Daniel Molkentin <danimo at owncloud.com>
Date: Mon Aug 10 20:13:20 2015 +0200
Settings dialog: Try to improve adherance to high contrast schemes
Adresses #3582
---
src/gui/settingsdialog.cpp | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/gui/settingsdialog.cpp b/src/gui/settingsdialog.cpp
index 20df8fe..a7392a8 100644
--- a/src/gui/settingsdialog.cpp
+++ b/src/gui/settingsdialog.cpp
@@ -38,9 +38,9 @@
namespace {
const char TOOLBAR_CSS[] =
- "QToolBar { background: white; margin: 0; padding: 0; border: none; border-bottom: 1px solid %1; spacing: 0; } "
- "QToolBar QToolButton { background: white; border: none; border-bottom: 1px solid %1; margin: 0; padding: 0; } "
- "QToolBar QToolButton:checked { background: %2; color: %3; }";
+ "QToolBar { background: white; margin: 0; padding: 0; border: none; border-bottom: 1px solid %1; border-top: 1px solid %1; spacing: 0; } "
+ "QToolBar QToolButton { background: %1; border: none; border-bottom: 1px solid %1; border-top: 1px solid %2; margin: 0; padding: 0; } "
+ "QToolBar QToolButton:checked { background: %3; color: %4; }";
void addActionToToolBar(QAction *action, QToolBar *tb) {
QToolButton* btn = new QToolButton;
@@ -67,7 +67,8 @@ SettingsDialog::SettingsDialog(ownCloudGui *gui, QWidget *parent) :
QString highlightColor(palette().highlight().color().name());
QString altBase(palette().alternateBase().color().name());
QString dark(palette().dark().color().name());
- toolBar->setStyleSheet(QString::fromAscii(TOOLBAR_CSS).arg(dark).arg(highlightColor).arg(altBase));
+ QString background(palette().base().color().name());
+ toolBar->setStyleSheet(QString::fromAscii(TOOLBAR_CSS).arg(background).arg(dark).arg(highlightColor).arg(altBase));
toolBar->setIconSize(QSize(32, 32));
toolBar->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
layout()->setMenuBar(toolBar);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list