[vlc-commits] [Git][videolan/vlc][3.0.x] 2 commits: qt: restore `color` adjustment in about dialog's style sheet
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Tue Oct 27 17:15:19 UTC 2026
Jean-Baptiste Kempf pushed to branch 3.0.x at VideoLAN / VLC
Commits:
c18d1af6 by Fatih Uzunoglu at 2026-10-27T18:04:37+01:00
qt: restore `color` adjustment in about dialog's style sheet
The default style does not necessarily have
to be light, it appears that even Qt's own
Fusion style tries to follow the system
theme (with KDE Plasma, at least).
The check box of using custom dark palette
override is one sided. If it is not checked,
it does not mean that the interface will use
light theme. It only means that the defaults
of the style is used. There is an exception
regarding this in the about dialog, however,
since it uses hardcoded colors in style sheet.
Sadly the dark palette override patch mistakenly
removed the hardcoded colors from the `about.ui`
file in order to support dark mode, but it did
not continue using `color: rgb(0, 0, 0)` when
the dark palette override option is not enabled.
Amends dd191b6f.
- - - - -
651670fe by Fatih Uzunoglu at 2026-10-27T18:04:37+01:00
qt: restore the title color in about dialog
Amends dd191b6f.
- - - - -
1 changed file:
- modules/gui/qt/dialogs/help.cpp
Changes:
=====================================
modules/gui/qt/dialogs/help.cpp
=====================================
@@ -86,18 +86,20 @@ AboutDialog::AboutDialog( intf_thread_t *_p_intf)
setWindowModality( Qt::WindowModal );
QString linkColor;
+ QString titleColor;
if ( var_InheritBool( p_intf, "qt-dark-palette" ) ) {
ui.horizontalFrame->setStyleSheet("background-color: rgb(10, 10, 10);");
ui.footer->setStyleSheet("background-color: rgb(25, 25, 25);");
linkColor = "#ffa851";
} else {
- ui.horizontalFrame->setStyleSheet("background-color: rgb(230, 230, 230);");
- ui.footer->setStyleSheet("background-color: rgb(245, 245, 245);");
+ ui.horizontalFrame->setStyleSheet("background-color: rgb(230, 230, 230); color: rgb(0, 0, 0);");
+ ui.footer->setStyleSheet("background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);");
linkColor = "#0057ae";
+ titleColor = QStringLiteral("color:#353535;");
}
ui.version->setText(qfu( " " VERSION_MESSAGE ) );
- ui.title->setText("<html><head/><body><p><span style=\" font-size:26pt;\"> " + qtr( "VLC media player" ) + " </span></p></body></html>");
+ ui.title->setText("<html><head/><body><p><span style=\" font-size:26pt;" + titleColor + "\"> " + qtr( "VLC media player" ) + " </span></p></body></html>");
QString translatedString = qtr( "<p>VLC media player is a free and open source media player, encoder, and streamer made by the volunteers of the <a href=\"http://www.videolan.org/\"><span style=\" text-decoration: underline; color:#0057ae;\">VideoLAN</span></a> community.</p><p>VLC uses its internal codecs, works on essentially every popular platform, and can read almost all files, CDs, DVDs, network streams, capture cards and other media formats!</p><p><a href=\"http://www.videolan.org/contribute/\"><span style=\" text-decoration: underline; color:#0057ae;\">Help and join us!</span></a>" );
if ( var_InheritBool( p_intf, "qt-dark-palette" ) )
translatedString.remove(QLatin1String("#0057ae"));
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/ba5cba12b9a14913dd236a2e6a5ac563a0026bf6...651670fe1a309717f81846ba7a0d4cbc21929a2b
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/ba5cba12b9a14913dd236a2e6a5ac563a0026bf6...651670fe1a309717f81846ba7a0d4cbc21929a2b
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list