From abeacef13d9d91573c56532a1cddb4e7c5cb8071 Mon Sep 17 00:00:00 2001 From: shenleban tongying Date: Sat, 23 Nov 2024 03:41:00 -0500 Subject: [PATCH] clean: delete unused and empty builtin qt-style.css for macOS/Linux --- src/stylesheets/css.qrc | 1 - src/stylesheets/qt-style.css | 0 src/ui/mainwindow.cc | 4 +--- 3 files changed, 1 insertion(+), 4 deletions(-) delete mode 100644 src/stylesheets/qt-style.css diff --git a/src/stylesheets/css.qrc b/src/stylesheets/css.qrc index 4b7307e0..5ef0da4c 100644 --- a/src/stylesheets/css.qrc +++ b/src/stylesheets/css.qrc @@ -15,7 +15,6 @@ qt-lingvo.css qt-modern.css qt-style-win.css - qt-style.css article-style-darkmode.css diff --git a/src/stylesheets/qt-style.css b/src/stylesheets/qt-style.css deleted file mode 100644 index e69de29b..00000000 diff --git a/src/ui/mainwindow.cc b/src/ui/mainwindow.cc index 35f8862d..7a8cd89b 100644 --- a/src/ui/mainwindow.cc +++ b/src/ui/mainwindow.cc @@ -1374,10 +1374,8 @@ void MainWindow::updateAppearances( QString const & addonStyle, } #endif - QFile builtInCssFile( ":qt-style.css" ); - builtInCssFile.open( QFile::ReadOnly ); - QByteArray css = builtInCssFile.readAll(); + QByteArray css{}; #if defined( Q_OS_WIN ) QFile winCssFile( ":qt-style-win.css" ); winCssFile.open( QFile::ReadOnly );