Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swap theme from the Adwaita to Fusion #659

Merged
merged 1 commit into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,6 @@ jobs:
uses: jurplel/install-qt-action@v3
with:
version: ${{env.QT_VERSION}}
- name: Install Adwaita-qt
run: |
git clone https://github.com/FedoraQt/adwaita-qt.git adwaita-qt
cd adwaita-qt
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DUSE_QT6=ON
make -j2
sudo make install

- name: Build
run: |
Expand Down
4 changes: 0 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ endif()

find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED Core DBus Gui Network Svg Qml Quick QuickControls2 Widgets)

if (UNIX AND NOT APPLE)
find_package(AdwaitaQt6 "1.4.2" REQUIRED)
endif()

add_subdirectory(src)

feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
7 changes: 0 additions & 7 deletions dist/fedora/mediawriter.spec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ BuildRequires: gettext
BuildRequires: cmake
BuildRequires: make
BuildRequires: libappstream-glib
BuildRequires: libadwaita-qt6-devel
BuildRequires: qt6-qtbase-devel
BuildRequires: qt6-qtdeclarative-devel
BuildRequires: xz-devel
Expand Down Expand Up @@ -43,9 +42,6 @@ like flash drives or memory cards.
%prep
%autosetup -p1 -n MediaWriter-%{version}

# Install the theme into correct prefix when building for /app
sed -i 's@\${QT6_INSTALL_QML}@%{_qt6_qmldir}@' src/theme/CMakeLists.txt

%build
%cmake

Expand All @@ -71,9 +67,6 @@ appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/org.fedo
%{_datadir}/icons/hicolor/128x128/apps/org.fedoraproject.MediaWriter.png
%{_datadir}/icons/hicolor/256x256/apps/org.fedoraproject.MediaWriter.png
%{_datadir}/icons/hicolor/512x512/apps/org.fedoraproject.MediaWriter.png
%{_qt6_qmldir}/QtQuick/Controls/org/fedoraproject/AdwaitaTheme/
%{_qt6_qmldir}/org/fedoraproject/AdwaitaTheme/libadwaitathemeplugin.so
%{_qt6_qmldir}/org/fedoraproject/AdwaitaTheme/qmldir

%changelog
* Mon May 09 06 2022 Jan Grulich <[email protected]> - 5.0.0-1
Expand Down
14 changes: 0 additions & 14 deletions dist/flatpak/fmw-paths.patch

This file was deleted.

22 changes: 0 additions & 22 deletions dist/flatpak/org.fedoraproject.MediaWriter.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,6 @@
"/lib/pkgconfig"
],
"modules": [
{
"name": "Adwaita-qt",
"buildsystem": "cmake",
"config-opts": ["-DUSE_QT6=ON"],
"sources": [
{
"type": "git",
"url": "https://github.com/FedoraQt/adwaita-qt.git",
"tag": "1.4.2"
},
{
"type": "shell",
"commands": [
"sed -i 's@add_subdirectory(style)@#add_subdirectory(style)@' src/CMakeLists.txt"
]
}
]
},
{
"name": "MediaWriter",
"buildsystem": "cmake",
Expand All @@ -47,10 +29,6 @@
"type": "git",
"url": "https://github.com/FedoraQt/MediaWriter.git",
"branch": "main"
},
{
"type": "patch",
"path": "fmw-paths.patch"
}
]
}
Expand Down
3 changes: 0 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
add_subdirectory(helper)
add_subdirectory(app)
add_subdirectory(lib)
if (UNIX AND NOT APPLE)
add_subdirectory(theme)
endif()
5 changes: 0 additions & 5 deletions src/app/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

include_directories(
${CMAKE_SOURCE_DIR}/src/lib
${CMAKE_SOURCE_DIR}/src/theme
${ADWAITAQT_INCLUDE_DIRS}
)

set(MEDIAWRITER_SRCS
Expand All @@ -17,8 +15,6 @@ set(MEDIAWRITER_SRCS
units.cpp
utilities.cpp
versionchecker.cpp
# From theme
${CMAKE_SOURCE_DIR}/src/theme/icon.cpp
)

if (UNIX AND NOT APPLE)
Expand Down Expand Up @@ -81,7 +77,6 @@ target_link_libraries(mediawriter
if (UNIX AND NOT APPLE)
target_link_libraries(mediawriter
Qt6::DBus
${ADWAITAQT_LIBRARIES}
)
endif()

Expand Down
15 changes: 0 additions & 15 deletions src/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,11 @@

#include "crashhandler.h"
#include "drivemanager.h"
#include "icon.h"
#include "portalfiledialog.h"
#include "releasemanager.h"
#include "units.h"
#include "versionchecker.h"

#if (defined(__linux))
#include <AdwaitaQt6/adwaitacolors.h>
#endif

#ifdef QT_STATIC
Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin);

Expand Down Expand Up @@ -74,10 +69,6 @@ int main(int argc, char **argv)
QApplication::setOrganizationName("fedoraproject.org");
QApplication::setApplicationName("MediaWriter");

#if (defined(__linux))
QQuickStyle::setStyle("QtQuick.Controls.org.fedoraproject.AdwaitaTheme");
#endif

QApplication app(argc, argv);
options.parse(app.arguments());

Expand All @@ -87,10 +78,6 @@ int main(int argc, char **argv)
if (translator.load(QLocale(QLocale().language(), QLocale().country()), QLatin1String(), QLatin1String(), ":/translations"))
app.installTranslator(&translator);

#if (defined(__linux))
QPalette adwaitaPalette = Adwaita::Colors::palette();
QGuiApplication::setPalette(adwaitaPalette);
#endif
QGuiApplication::setDesktopFileName("org.fedoraproject.MediaWriter.desktop");

mDebug() << "Injecting QML context properties";
Expand All @@ -109,8 +96,6 @@ int main(int argc, char **argv)
engine.rootContext()->setContextProperty("platformSupportsDelayedWriting", false);
#endif

qmlRegisterType<Icon>("MediaWriter", 1, 0, "Icon");

mDebug() << "Loading the QML source code";

engine.load(QUrl(QStringLiteral("qrc:/qml/main.qml")));
Expand Down
23 changes: 0 additions & 23 deletions src/theme/CMakeLists.txt

This file was deleted.

42 changes: 0 additions & 42 deletions src/theme/adwaitathemeplugin.cpp

This file was deleted.

35 changes: 0 additions & 35 deletions src/theme/adwaitathemeplugin.h

This file was deleted.

Loading
Loading