gnome 3 mate_在GNOME / MATE桌面中为QT应用程序配置鼠标光标样式

本文介绍了如何在GNOME/MATE桌面环境中为QT应用程序配置鼠标光标样式,使其与GTK应用程序保持一致。QT通过读取用户主目录下'.icons/theme'目录中的主题配置来设定光标样式。设置环境变量后,QT应用将使用与MATE中相同(如'mate'主题)的光标样式。
摘要由CSDN通过智能技术生成

gnome 3 mate

QT and GTK applications use different settings for cursor styles. This makes the mouse cursor styles for QT applications in the GNOME / MATE desktop environment or GTK applications in the KDE desktop environment look different with other programs.

QT和GTK应用程序对光标样式使用不同的设置。 这使GNOME / MATE桌面环境中的QT应用程序或KDE桌面环境中的GTK应用程序的鼠标光标样式看起来与其他程序不同。

In the post Configuring Mouse Cursor Style for GTK Applications in KDE Desktop, we talked about how to configure the mouse cursor style for GTK applications in the KDE desktop environment. In this post, we will introduce how to configure the mouse cursor style for QT applications in the GNOME / MATE desktop environment.

在“ 在KDE Desktop中为GTK应用程序配置鼠标光标样式”一文中 ,我们讨论了如何在KDE桌面环境中为GTK应用程序配置鼠标光标样式。 在本文中,我们将介绍如何在GNOME / MATE桌面环境中为QT应用程序配置鼠标光标样式。

QT reads the theme configuration from the ‘.icons/theme’ directory under the user’s home. We can simply set it to the theme we like. For example, I use the ‘mate’ cursor theme on MATE. This is my configuration:

QT从用户主目录下的“ .icons / theme”目录中读取主题配置。 我们可以简单地将其设置为我们喜欢的主题。 例如,我在MATE使用'mate'光标主题。 这是我的配置:


$ cat ~/.icons/default/index.theme 
[Icon Theme]
Inherits=mate

After setting this environment, the QT applications start to use the same cursor theme (also the ‘mate’) as I set in MATE for other programs.

设置此环境后,QT应用程序开始使用与我在MATE中为其他程序设置的相同的光标主题(也称为“伴侣”)。

BTW: Set the theme style for QT applications is easier, just use the qtconfig-qt4 program provided by QT. The package for this program on Fedora is ‘qt-config’.

顺便说一句:为QT应用程序设置主题样式更加容易,只需使用QT提供的qtconfig-qt4程序即可。 在Fedora上此程序的软件包是“ qt-config”。

翻译自: https://www.systutorials.com/configuring-mouse-cursor-style-for-qt-applications-in-gnome-mate-desktop/

gnome 3 mate

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值