forked from qt-creator/qt-creator
QmlDesigner: Apply Toolbutton style to the toolbar and curveEditor
Change-Id: I65879951025897a638f25ec4d52ce62710d26f54 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include "coreplugin/actionmanager/actionmanager.h"
|
||||
#include "coreplugin/icontext.h"
|
||||
#include "theme.h"
|
||||
#include "utils/fileutils.h"
|
||||
#include "utils/id.h"
|
||||
|
||||
#include <QAction>
|
||||
@@ -64,6 +65,9 @@ CurveEditorToolBar::CurveEditorToolBar(CurveEditorModel *model, QWidget* parent)
|
||||
setFixedHeight(Theme::toolbarSize());
|
||||
setContentsMargins(0, 0, 0, 0);
|
||||
|
||||
QByteArray sheet = Utils::FileReader::fetchQrc(":/qmldesigner/stylesheet.css");
|
||||
setStyleSheet(Theme::replaceCssColors(QString::fromUtf8(sheet)));
|
||||
|
||||
QAction *tangentLinearAction = addAction(Theme::iconFromName(Theme::linear_medium), "Linear");
|
||||
QAction *tangentStepAction = addAction(Theme::iconFromName(Theme::step_medium), "Step");
|
||||
QAction *tangentSplineAction = addAction(Theme::iconFromName(Theme::bezier_medium), "Spline");
|
||||
|
@@ -95,6 +95,9 @@ TimelineToolBar::TimelineToolBar(QWidget *parent)
|
||||
: QToolBar(parent)
|
||||
, m_grp()
|
||||
{
|
||||
QByteArray sheet = Utils::FileReader::fetchQrc(":/qmldesigner/stylesheet.css");
|
||||
setStyleSheet(Theme::replaceCssColors(QString::fromUtf8(sheet)));
|
||||
|
||||
setContentsMargins(0, 0, 0, 0);
|
||||
setFixedHeight(Theme::toolbarSize());
|
||||
createLeftControls();
|
||||
@@ -275,7 +278,8 @@ void TimelineToolBar::createCenterControls()
|
||||
|
||||
addSpacing(2);
|
||||
QIcon playbackIcon = TimelineUtils::mergeIcons(
|
||||
Theme::iconFromName(Theme::Icon::pause),
|
||||
Theme::iconFromName(Theme::Icon::pause,
|
||||
Theme::getColor(Theme::Color::DStextSelectedTextColor)),
|
||||
Theme::iconFromName(Theme::Icon::playOutline_medium,
|
||||
Theme::getColor(Theme::Color::IconsRunColor)));
|
||||
|
||||
|
Reference in New Issue
Block a user