- Kvantum manager linux mint
- How to install Kvantum
- 4 Answers 4
- Install the build dependencies
- Download the latest source
- Compile kvantum
- Install kvantum
- Get Qt applications to use kvantum
- To completely uninstall
- Установка и настройка Kvantum
- Установка
- Использование
- Use Custom Themes For Qt Applications (And Fix Qt5 Theme On GNOME) On Linux With Kvantum
- Installing and using Kvantum
- Get Qt5 applications to use Kvantum
- How to completely remove Kvantum
Kvantum manager linux mint
Table of contents
Before compiling Kvantum, you will need:
See Distributions for distro specific information on required packages and direct installation methods.
If you want to compile Kvantum from its source, install the following packages:
- gcc (or gcc-multilib for multilib systems)
- libx11 and libxext (for X11)
- qt5-base , qt5-svg and qt5-x11extras (for Qt5)
- kwindowsystem
- qt5-tools (for localization if you need it)
To install Kvantum directly, you have the choice to install the stable package or, preferably, the git package. Respectively, execute:
NOTE: yay only serves as an example here.
If you want to compile Kvantum from its source, install these packages:
- g++
- libx11-dev and libxext-dev (for X11)
- qtbase5-dev , libqt5svg5-dev and libqt5x11extras5-dev (for Qt5)
- libkf5windowsystem-dev
- qttools5-dev-tools (for localization if you need it)
In Ubuntu, you can install Kvantum directly with:
Since the PPA splits the package into qt5-style-kvantum and qt5-style-kvantum-themes , both of them should be installed.
Only if you are using a stable branch (e.g. KEYWORD=»amd64″ ), you will have to unmask x11-themes/kvantum . After that, execute:
NOTE: All of Kvantum’s dependencies will be automatically installed when emerging x11-themes/kvantum .
If you want to compile Kvantum from its source, install these packages:
- gcc-c++
- libX11-devel
- libXext-devel
- libqt5-qtx11extras-devel
- libqt5-qtbase-devel
- libqt5-qtsvg-devel
- libqt5-qttools-devel
- kwindowsystem-devel
see Compilation on how to compile and install Kvantum.
Thanks to trmdi, you can install Kvantum directly, by executing:
Red Hat based distributions
If you want to compile Kvantum from its source in Red Hat based distributions like Fedora, you will need these packages:
- gcc-c++
- libX11-devel
- libXext-devel
- qt5-qtx11extras-devel
- qt5-qtbase-devel
- qt5-qtsvg-devel
- qt5-qttools-devel
- kf5-kwindowsystem-devel
To install Kvantum directly, execute:
To compile Kvantum from source on Solus, you would need the system.devel component installed:
- sudo eopkg install -c system.devel
There are no pre-built Kvantum eopkg installers avaialble, so proceed to Compilation to compile Kvantum yourself.
There are two ways to compile Kvantum: with qmake or with cmake .
Just open a terminal inside this folder and issue the following command:
With some distros, you might need to put the full path of qmake in the above command.
Open a terminal inside this folder and issue the following commands:
If you want to install Kvantum in a nonstandard path (which is not recommended), you could add the option -DCMAKE_INSTALL_PREFIX=YOUR_SELECTED_PATH to the cmake command.
NOTE: Experimental compilation of Kvantum’s plugin against Qt6 can be done with cmake .. -DENABLE_QT5=OFF . For now, it lacks blurring support (which requires version 6 of kwindowsystem ). When Qt6 becomes the default version of Qt in some distros, that compilation option will be set to OFF by default and all components of Kvantum will be compiled against Qt6.
Use this command for installation:
If you have compiled Kvantum with qmake , the following command cleans the source completely and makes it ready for another compilation:
If you have used cmake for compilation, to compile Kvantum again, first remove the contents of the build directory.
- Select Kvantum from System Settings → Application Style → Widget Style and apply it.
- Select Kvantum from System Settings → Color → Scheme and click Apply. You could change the color scheme later if you choose another Kvantum theme with Kvantum Manager (see «Using Other Themes» below).
Logging out and in would be good for Plasma to see the new theme.
Just select kvantum from Configuration Center → Appearance → Widget Style. Kvantum Manager is also shown in Configuration Center for changing the Kvantum theme.
In case you use Compton as the X compositor (not recommended), be sure to disable its shadow and blurring for composited Qt menus with lines like these in
NOTE: It is highly preferable that you install a Qt configuration utility (which provides a Qt plugin) and select Kvantum with it, instead of using the following methods directly. Otherwise, there will be no guarantee that any style, other than Qt’s default style, will work properly with all Qt applications.
That being said, you could try this command to run a Qt application APP with Kvantum:
To style all native Qt applications with Kvantum, set the environment variable QT_STYLE_OVERRIDE to kvantum . For example, you could add this line to your
Under GNOME and desktop environments that do not source
/.profile , you could make a file like
/.config/environment.d/qt.conf with the following line in it and reboot:
Touching /etc/environment is not recommended.
Using other themes
To select or install (as user) Kvantum themes, use Kvantum Manager, which is already installed and is available in the start menu as a utility app. It explains each step in a straightforward way. With it, you could not only switch between themes easily but also select themes for specific applications.
For the running parts of KDE/LXQt to recognize the new Kvantum theme, the easiest way is logging out and in again.
Blur effect (KWin)
The blur effect of any compositor can be used with Kvantum when its active theme has translucent backgrounds. However, Kvantum can control KWin’s blur effect with translucent menus and tooltips as well as explicitly translucent windows (like those of QTerminal, Konsole or LXQt Panel). Enabling blur options in Kvantum Manager has effect only when KWin’s blur effect is enabled; otherwise, there will be no blurring or another compositor will control how translucent backgrounds are blurred.
In the case of compositors other than KWin, it is preferable that menus and tooltips have neither shadow nor blurring because those compositors cannot distinguish the shadows that Kvantum gives to menus and tooltips. But, if disabling menu/tooltip shadow and blurring is not possible with them, Kvantum Manager → Compositing & General Look → Shadowless menus and tooltips could be checked as a workaround.
Make sure that you never have two compositors running together! KWin is highly recommended, whether with KDE or with LXQt. It supports both X11 and Wayland and has a decent blur effect.
Notes for theme makers
If the KDE color scheme of the theme is inside its folder, Kvantum Manager will install it too. So, theme makers might want to put these files in their theme folder: $THEME_NAME.svg , $THEME_NAME.kvconfig and $THEME_NAME.colors .
The contents of theme folders (if valid) can also be installed manually in the user’s home. The possible installation paths are
/.local/share/themes/$THEME_NAME/Kvantum/ , each one of which takes priority over the next one, i.e. if a theme is installed in more than one path, only the instance with the highest priority will be used by Kvantum.
Themes can also be packaged as deb, rpm, xz. packages and installed as root:
- The possible root installation paths are /usr/share/Kvantum/$THEME_NAME/ and /usr/share/themes/$THEME_NAME/Kvantum/ (if PREFIX=/usr ). The first path will take priority over the second one if a theme is installed in both.
- The KDE color schemes should go to /usr/share/color-schemes/ .
- If a theme is installed both as root and as user, the latter installation will take priority.
Please see Theme-Making for more information on theme installation paths and their priorities.
The default Qt installation adds several root themes, that can be selected by using Kvantum Manager. Their corresponding KDE color schemes are also installed.
Kvantum does not — and will not — have any relation to GTK. However, it includes some themes similar to or matching GTK themes.
Источник
How to install Kvantum
I’m running Kubuntu 17.04 and want to install Kvantum, but apparently there is no package. How do I do that? Maybe a PPA, maybe download a .deb file?
4 Answers 4
When I installed the Adapta-KDE theme, Kvantum manager installed automatically:
Hope that it helps! 🙂
For Debian / Ubuntu / Linux Mint, there are deb binaries available to download but for a quite old version (Kvantum 0.10.5, released back in October, 2017).
To install the latest Kvantum in Debian, Ubuntu or Linux Mint, you can compile it from source. To do this, follow the steps below.
Install the build dependencies
Download the latest source
Compile kvantum
Install kvantum
Get Qt applications to use kvantum
After this, logout and log back in. To apply Kvantum system-wide, and not just for your user, you could add export QT_STYLE_OVERRIDE=kvantum in /etc/environment instead of
To completely uninstall
If you want to uninstall Kvantum installed from source, start by opening a terminal, navigating to the folder where you’ve extracted (in the build folder from the Kvantum/Kvantum directory if you’ve followed our instructions) and built the source — e.g. cd
/repos/tsujan/Kvantum/Kvantum/build , and running this command:
You’ll also need to remove the export QT_STYLE_OVERRIDE=kvantum line from your
/.profile file. To do this, open
/.profile with a text editor, e.g. kate:
And remove the QT_STYLE_OVERRIDE=kvantum line from this file, then save it, logout and log back in.
Источник
Установка и настройка Kvantum
Kvantum — движок тем на базе векторного формата SVG для приложений, реализованных с использованием Qt. В этой статье мы разберём процесс установки самого движка и тем для него.
Установка
Kubuntu, KDE Neon
Актуальная версия Kvantum для Ubuntu доступна в PPA команды Papirus:
sudo add-apt-repository ppa:papirus/papirus
sudo apt update
sudo apt install qt5-style-kvantum qt5-style-kvantum-themes
openSUSE
Kvantum доступен в openSUSE Tumbleweed и в нескольких репозиториях сообщества для Leap: software.opensuse.org/package/kvantum
Arch
Fedora
Использование
Kvantum можно настроить при помощи Kvantum Manager, который поставляется вместе с самим движком тем.
Чтобы установить новую тему, выберите директорию, в которую вы её скачали, и нажмите кнопку «Install this theme».
Сделать тему активной можно во вкладке «Change/Delete Theme».
Просто выберите тему из списка и нажмите «Use this theme».
Чтобы активировать тему, нужно выбрать Kvantum в Параметры системы > Оформление приложений > Оформление приложений, а в настройках цветовых схем выбрать набор цветов устанавливаемой темы (с префиксом Kv).
Источник
Use Custom Themes For Qt Applications (And Fix Qt5 Theme On GNOME) On Linux With Kvantum
Some Qt applications look out of place in Gnome (and other Gtk-based desktop environments). To be able to choose the theme Qt applications are using on your Linux system, tweak some settings, and have an overall better integration with Gnome / Gtk, you can give Kvantum a try. This is a SVG-based theme engine for both Qt4 and Qt5, KDE and LXQt.
Using it, you’ll not only be able to theme Qt4 and Qt5 software to match your current Gtk theme almost entirely (as long as your current Gtk theme has a Kvantum theme available), but also configure some Qt theme-related settings.
The idea behind Kvantum — to use SVG images to style Qt widgets — comes from QuantumStyle, which is not developed any more, but is continued as QSvgStyle. I find QSvgStyle more difficult to use than Kvantum though, because it only comes with one built-in theme.
Kvantum active theme configuration |
Kvantum active theme configuration |
Besides allowing you to change the Qt 4 and Qt 5 style, Kvantum also features:
- built-in Kvantum themes such as Adapta (and Dark), Ambiance, Ark (and Dark variant), Ubuntu Communitheme / Yaru, Gnome, Oxygen, Simplicity, and others (in total there are 30 themes)
- allows installing extra Kvantum themes
- configure active theme: set the toolbar button style, change UI icons and button sizes, enable or disable composite effects or translucent windows, option to respect dark themes, completely remove icons from menus, and much more
- assign themes to specific applications
- a preview tool, somewhat similar to the gtk3-widget-factory tool, is available, so you can see the current Kvantum theme and your modifications in action
Here’s Kvantum with some popular themes like Ambiance, Yaru / Communitheme and the default Gnome (Adwaita) theme:
It’s important to mention that Kvantum and other similar tools cannot change the Qt theme for applications installed from Snap, Flatpak or AppImage binaries.
Installing and using Kvantum
You can find the Kvantum installation instructions for some Linux distributions here.
On Fedora you can install Kvantum from the repositories, using:
Arch Linux / Manjaro users can install Kvantum with:
Solus OS has Kvantum in its repositories too, and you can install it using:
Pop!_OS / Ubuntu 21.04, 20.10, 20.04, 19.10 and 19.04 / Linux Mint 20.* / Debian Buster and newer: Starting with Ubuntu 19.04 (Disco Dingo) / Debian Buster, Kvantum is available in the official Ubuntu repositories. So if you use Pop!_OS / Ubuntu 21.04, 20.10, 20.04, 19.10, 19.04, or Debian Buster and newer, you can install Kvantum from the repositories using:
Pop!_OS / Ubuntu 18.04 and Linux Mint 19.* (as well as other Ubuntu-based Linux distributions, like Elementary OS 5) users wanting an easy way of installing Kvantum can use a PPA. The PPA also has newer Kvantum packages for Ubuntu 20.10, 20.04, 19.10 or 19.04 too. Add it and install Kvantum using:
You may also build Kvantum from source. To install the latest Kvantum from source in Debian, Ubuntu or Linux Mint (any version), you can compile it from source. To do this, follow the steps below.
Step 1: Download the latest Kvantum source
You can either download the latest Kvantum release, or grab the latest Kvantum code via Git:
Step 2: Install the build dependencies
Step 3: Compile Kvantum
Navigate to the folder where you extracted the Kvantum source (or cloned the Git repository) from a terminal (using cd /path/to/folder ) and compile the application using these commands:
Step 4: Install Kvantum
To install Kvantum, run the following command (while in the same folder):
This builds and installs Kvantum for Qt 5, which should be enough since most applications use Qt 5 nowadays. If you want to build it for Qt4, use the same instructions as above but add -DENABLE_QT4=ON after the cmake .. command from step 3.
Get Qt5 applications to use Kvantum
/.profile by running the command below:
After this, logout and log back in. To apply Kvantum system-wide, and not just for your user, you could add export QT_STYLE_OVERRIDE=kvantum in /etc/environment instead of
For desktop environments such as KDE and LXQt, using Kvantum is a lot easier — select Kvantum under Widget Style and Color Scheme and that’s all.
Now all you have to do is run Kvantum and select the theme you want to use, and tweak the settings to suit your needs.
How to completely remove Kvantum
If you want to uninstall Kvantum installed from source, start by opening a terminal, navigating to the folder where you’ve extracted (in the build folder from the Kvantum/Kvantum directory if you’ve followed our instructions) and built the source — e.g. cd Kvantum/Kvantum/build , and running this command:
If Kvantum was installed from the repositories, simply remove it using your Linux distribution’s package manager.
No matter the Kvantum installation method, you’ll also need to remove the export QT_STYLE_OVERRIDE=kvantum line from your
/.profile file. To do this, open
/.profile with a text editor, e.g. Gedit:
And remove the QT_STYLE_OVERRIDE=kvantum line from this file, then save it, logout and log back in.
Источник