Skip to content

Commit

Permalink
Move styling of rename line edit into style sheets
Browse files Browse the repository at this point in the history
Move the style of the `QGraphicsView` for the rename line edit from the code into the style sheets of the default and classic theme.
  • Loading branch information
michaelgregorius committed Dec 29, 2023
1 parent 6950998 commit 1d3ee18
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions data/themes/classic/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,11 @@ lmms--gui--MixerChannelView {
qproperty-strokeInnerInactive: rgba( 255, 255, 255, 50 );
}

lmms--gui--MixerChannelView QGraphicsView {
background: transparent;
border-style: none;
}

/* persistent peak markers for fx peak meters */
lmms--gui--Fader {
qproperty-peakGreen: rgb( 74, 253, 133);
Expand Down
5 changes: 5 additions & 0 deletions data/themes/default/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,11 @@ lmms--gui--MixerChannelView {
qproperty-strokeInnerInactive: #0C0D0F;
}

lmms--gui--MixerChannelView QGraphicsView {
background: transparent;
border-style: none;
}

/* persistent peak markers for fx peak meters */
lmms--gui--Fader {
qproperty-peakGreen: #0ad45c;
Expand Down
1 change: 0 additions & 1 deletion src/gui/MixerChannelView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ namespace lmms::gui

auto renameLineEditScene = new QGraphicsScene{};
m_renameLineEditView = new QGraphicsView{};
m_renameLineEditView->setStyleSheet("border-style: none; background: transparent;");
m_renameLineEditView->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
m_renameLineEditView->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
m_renameLineEditView->setAttribute(Qt::WA_TransparentForMouseEvents, true);
Expand Down

0 comments on commit 1d3ee18

Please sign in to comment.