mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Replace style sheet in Editor::Paint
This commit is contained in:
parent
2f2003c89b
commit
387914be31
1 changed files with 2 additions and 6 deletions
|
@ -27,11 +27,6 @@ namespace {
|
||||||
constexpr auto kMaxBrush = 25.;
|
constexpr auto kMaxBrush = 25.;
|
||||||
constexpr auto kMinBrush = 1.;
|
constexpr auto kMinBrush = 1.;
|
||||||
|
|
||||||
constexpr auto kViewStyle = "QGraphicsView {\
|
|
||||||
background-color: transparent;\
|
|
||||||
border: 0px\
|
|
||||||
}"_cs;
|
|
||||||
|
|
||||||
std::shared_ptr<Scene> EnsureScene(
|
std::shared_ptr<Scene> EnsureScene(
|
||||||
PhotoModifications &mods,
|
PhotoModifications &mods,
|
||||||
const QSize &size) {
|
const QSize &size) {
|
||||||
|
@ -62,7 +57,8 @@ Paint::Paint(
|
||||||
_view->show();
|
_view->show();
|
||||||
_view->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
_view->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||||
_view->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
_view->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||||
_view->setStyleSheet(kViewStyle.utf8());
|
_view->setFrameStyle(int(QFrame::NoFrame) | QFrame::Plain);
|
||||||
|
_view->viewport()->setAutoFillBackground(false);
|
||||||
|
|
||||||
// Undo / Redo.
|
// Undo / Redo.
|
||||||
controllers->undoController->performRequestChanges(
|
controllers->undoController->performRequestChanges(
|
||||||
|
|
Loading…
Add table
Reference in a new issue