mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-16 09:29:55 +00:00
UI Nits: Ride list scrollbar on Mac
Style was all wrong and when rides were filtered the scrollbar disappeared by the space was left un painted.
This commit is contained in:
@@ -567,7 +567,9 @@ MainWindow::MainWindow(const QDir &home) :
|
||||
|
||||
QWidget *activityHistory = new QWidget(this);
|
||||
activityHistory->setContentsMargins(0,0,0,0);
|
||||
#ifndef Q_OS_MAC // not on mac thanks
|
||||
activityHistory->setStyleSheet("padding: 0px; border: 0px; margin: 0px;");
|
||||
#endif
|
||||
QVBoxLayout *activityLayout = new QVBoxLayout(activityHistory);
|
||||
activityLayout->setSpacing(0);
|
||||
activityLayout->setContentsMargins(0,0,0,0);
|
||||
@@ -714,8 +716,10 @@ MainWindow::MainWindow(const QDir &home) :
|
||||
|
||||
splitter->setChildrenCollapsible(false); // QT BUG crash QTextLayout do not undo this
|
||||
splitter->setHandleWidth(1);
|
||||
#ifndef Q_OS_MAC // not on Mac thanks
|
||||
splitter->setStyleSheet(" QSplitter::handle { background-color: #B3B4BA; "
|
||||
" color: #B3B4BA; }");
|
||||
#endif
|
||||
splitter->setFrameStyle(QFrame::NoFrame);
|
||||
splitter->setContentsMargins(0, 0, 0, 0); // attempting to follow some UI guides
|
||||
|
||||
|
||||
Reference in New Issue
Block a user