Skip to content

Commit

Permalink
CTT: big cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
theofficialgman committed May 3, 2024
1 parent 8ba9927 commit b7216ef
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions scripts/custom-theme-toolbox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,13 @@ Raspbian | Debian | Ubuntu)
sudo apt install -y build-essential qt5ct git qt5-qmake make qml-module-qtquick-controls qtdeclarative5-dev libqt5svg5-dev libcanberra-gtk-module xdg-desktop-portal xdg-utils python3-dbus

sudo apt install -y
package_available qt5-default
if [[ $? == "0" ]]; then
if package_available qt5-default ; then
sudo apt install -y qt5-default || error "Failed to install dependencies"
fi

package_available qt6ct
if [[ $? == "0" ]]; then
if package_available qt6ct ; then
echo "Installing QT6CT for management of QT6 settings..."
sudo apt install -y qt6ct qt6-gtk-platformtheme qt6-xdgdesktopportal-platformtheme || error "Failed to install QT6 settings!"
sudo apt install -y qt6ct qt6-xdgdesktopportal-platformtheme || error "Failed to install QT6 settings!"
else
echo "Compiling QT6CT for management of QT6 settings..."
# use Owen Kirby's QT6 PPA when testing this
Expand All @@ -49,25 +47,28 @@ Raspbian | Debian | Ubuntu)

sudo apt install -y qt6-base-dev libqt6svg6-dev qt6-tools-dev libgtk2.0-dev qt6-base-private-dev qt6-l10n-tools || error "Failed to install dependencies!" #this is definitely missing dependencies, add more

#GTK support for QT6
cd ~
git clone https://github.com/trialuser02/qt6gtk2
cd qt6gtk2 || error_user "Failed to download source code from GitHub!"
git pull
#theme selection tool for QT6
cd /tmp
git clone --depth=1 https://github.com/trialuser02/qt6ct
cd qt6ct || error_user "Failed to download source code from GitHub!"
qmake6 . || error "qmake failed!"
make -j$(nproc) || error "make failed!"
sudo make install || error "make install failed!"
cd ~
fi

#theme selection tool for QT6
cd ~
git clone https://github.com/trialuser02/qt6ct
cd qt6ct || error_user "Failed to download source code from GitHub!"
git pull
if package_available qt6-gtk2-platformtheme ; then
if ! package_installed qt6-gtk2-platformtheme ; then
sudo apt install qt6-gtk2-platformtheme -y || error "Failed to install QT6 GTK2 Platform theme"
fi
else
#GTK support for QT6
cd /tmp
rm -rf qt6gtk2
git clone --depth=1 https://github.com/trialuser02/qt6gtk2
cd qt6gtk2 || error_user "Failed to download source code from GitHub!"
qmake6 . || error "qmake failed!"
make -j$(nproc) || error "make failed!"
sudo make install || error "make install failed!"
cd ~
fi

;;
Expand Down

0 comments on commit b7216ef

Please sign in to comment.