<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>GTK主题配置 on 根叔的博客</title>
    <link>https://www.learnhard.cn/tags/gtk%E4%B8%BB%E9%A2%98%E9%85%8D%E7%BD%AE/</link>
    <description>Recent content in GTK主题配置 on 根叔的博客</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh</language>
    <lastBuildDate>Mon, 08 Jan 2024 21:03:50 +0800</lastBuildDate>
    <atom:link href="https://www.learnhard.cn/tags/gtk%E4%B8%BB%E9%A2%98%E9%85%8D%E7%BD%AE/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>GTK主题配置方法</title>
      <link>https://www.learnhard.cn/linux/gtk%E4%B8%BB%E9%A2%98%E9%85%8D%E7%BD%AE%E6%96%B9%E6%B3%95/</link>
      <pubDate>Mon, 08 Jan 2024 21:03:50 +0800</pubDate>
      <guid>https://www.learnhard.cn/linux/gtk%E4%B8%BB%E9%A2%98%E9%85%8D%E7%BD%AE%E6%96%B9%E6%B3%95/</guid>
      <description>美化GTK软件界面可以通过配置：
GTK主题 GTK图标主题 光标Cursor主题 配置GTK主题 GTK软件的界面样式切换可以通过切换GTK主题实现。
主题的默认存储目录位置如下:
bash 1 2 /usr/share/themes $HOME/.local/share/themes 通过修改GTK_THEME环境变量切换主题。
也可以通过下面方式更新某个软件的主题设置:
bash 1 2 GTK_THEME=oomox-Pandora-Arc thunar 上面的运行thunar文件浏览器软件可以立刻预览指定的主题外观样式。
修改~/.xprofile配置文件，增加如下环境变量:
bash 1 export GTK_THEME=Flat-Remix-GTK-Cyan-Dark 重新登录桌面系统生效。
最后也可以通过修改配置文件设置全局主题，配置文件路径:
bash 1 2 3 /usr/share/gtk-3.0/settings.ini $XDG_CONFIG_HOME/gtk-3.0/settings.ini $HOME/.config/gtk-3.0/settings.ini # 如果没设置 $XDG_CONFIG_HOME 文件内容示例：
ini 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 # file: ~/.gtkrc-2.0 gtk-theme-name=&amp;#34;Arc-Dark&amp;#34; gtk-icon-theme-name=&amp;#34;breeze-dark&amp;#34; gtk-font-name=&amp;#34;Sans 11&amp;#34; gtk-cursor-theme-name=&amp;#34;Breeze_Amber&amp;#34; gtk-cursor-theme-size=0 gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ gtk-toolbar-icon-size=GTK_ICON_SIZE_SMALL_TOOLBAR gtk-button-images=0 gtk-menu-images=0 gtk-enable-event-sounds=0 gtk-enable-input-feedback-sounds=0 gtk-xft-antialias=1 gtk-xft-hinting=1 gtk-xft-hintstyle=&amp;#34;hintslight&amp;#34; gtk-xft-rgba=&amp;#34;rgb&amp;#34; ini 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 # ~/.</description>
    </item>
  </channel>
</rss>
