Merge pull request #6787 from michaelgregorius/2510-Fix-HiDPI-Issues-For-Menus
Fix HiDPI issues for menus
This commit is contained in:
@@ -82,7 +82,6 @@ lmms--gui--TextFloat, lmms--gui--SimpleTextFloat {
|
||||
QMenu {
|
||||
border:1px solid #747474;
|
||||
background-color: #c9c9c9;
|
||||
font-size:11px;
|
||||
}
|
||||
|
||||
QMenu::separator {
|
||||
@@ -98,15 +97,12 @@ QMenu::item {
|
||||
|
||||
QMenu::item:selected {
|
||||
color: white;
|
||||
font-weight:bold;
|
||||
background-color: #747474;
|
||||
}
|
||||
|
||||
QMenu::item:disabled {
|
||||
color: #747474;
|
||||
background-color: #c9c9c9;
|
||||
font-size:12px;
|
||||
font-weight: normal;
|
||||
padding: 4px 32px 4px 20px;
|
||||
}
|
||||
|
||||
|
||||
@@ -115,7 +115,6 @@ QSplashScreen QLabel {
|
||||
QMenu {
|
||||
border-top: 2px solid #08993E;
|
||||
background-color: #15191c;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
QMenu::separator {
|
||||
@@ -133,15 +132,12 @@ QMenu::item {
|
||||
|
||||
QMenu::item:selected {
|
||||
color: #d1d8e4;
|
||||
font-weight: normal;
|
||||
background-color: #21272b;
|
||||
}
|
||||
|
||||
QMenu::item:disabled {
|
||||
color: #515459;
|
||||
background-color: #262b30;
|
||||
font-size: 12px;
|
||||
font-weight: normal;
|
||||
padding: 4px 32px 4px 20px;
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,6 @@ MidiPortMenu::MidiPortMenu( MidiPort::Mode _mode ) :
|
||||
ModelView( nullptr, this ),
|
||||
m_mode( _mode )
|
||||
{
|
||||
setFont( pointSize<9>( font() ) );
|
||||
connect( this, SIGNAL(triggered(QAction*)),
|
||||
this, SLOT(activatedPort(QAction*)));
|
||||
}
|
||||
|
||||
@@ -64,7 +64,6 @@ TrackOperationsWidget::TrackOperationsWidget( TrackView * parent ) :
|
||||
"to begin a new drag'n'drop action." ).arg(UI_CTRL_KEY) );
|
||||
|
||||
auto toMenu = new QMenu(this);
|
||||
toMenu->setFont( pointSize<9>( toMenu->font() ) );
|
||||
connect( toMenu, SIGNAL(aboutToShow()), this, SLOT(updateMenu()));
|
||||
|
||||
|
||||
|
||||
@@ -70,7 +70,6 @@ ComboBox::ComboBox( QWidget * _parent, const QString & _name ) :
|
||||
}
|
||||
|
||||
setFont( pointSize<9>( font() ) );
|
||||
m_menu.setFont( pointSize<8>( m_menu.font() ) );
|
||||
|
||||
connect( &m_menu, SIGNAL(triggered(QAction*)),
|
||||
this, SLOT(setItem(QAction*)));
|
||||
|
||||
Reference in New Issue
Block a user