主题应用程序未在 Cinnamon 中显示已安装 GTK 主题(窗口边框和控件)的预览

主题应用程序未在 Cinnamon 中显示已安装 GTK 主题(窗口边框和控件)的预览

我已经使用 ppa 在 Ubuntu 中安装了 Cinnamon。我遇到的问题是新安装的 GTK 主题不会在主题应用程序中显示预览。这是屏幕截图。窗口边框预览在此输入图像描述正如您所看到的,窗口边框和控件预览是空白的。我该如何解决?但是,像 Mint-x 这样的默认主题会显示预览。

答案1

迟到的答案,但我希望它仍然有用。发生这种情况很可能是因为没有为 cinnamon 提供主题缩略图。看/usr/share/cinnamon/thumbnails/gtk-3.0/README

HOW TO MAKE A GTK THEME THUMBNAIL?
----------------------------------

- Install ImageMagick ("apt install imagemagick")
- Open a terminal and run "cinnamon-preview-gtk-theme mytheme" (where mytheme is the name of the Theme you want to thumbnail)
- Press Alt+Print-Screen to take a screenshot of the window
- Go to your Pictures directory and move the screenshot to ~/screenshot.png
- Open a terminal and type:

       cd
       convert screenshot.png -gravity north-west -extent 120x35 thumbnail.png

WHICH THUMBNAIL IS USED BY CINNAMON TO REPRESENT A THEME?
---------------------------------------------------------

- Cinnamon first tries to find a gtk-3.0/thumbnail.png file in the theme directory
- If it doesn't find any, it looks in /usr/share/cinnamon/thumbnails/gtk-3.0/

/usr/share/cinnamon/thumbnails/metacity-1/README

HOW TO MAKE A METACITY THUMBNAIL?
---------------------------------

- Install ImageMagick ("apt install imagemagick")
- Open a window (Nemo for instance)
- Press Alt+Print-Screen to take a screenshot of the window
- Go to your Pictures directory and move the screenshot to ~/screenshot.png
- Open a terminal and type:

       cd
       convert screenshot.png -gravity north-east -extent 100x32 thumbnail.png

WHICH THUMBNAIL IS USED BY CINNAMON TO REPRESENT A THEME?
---------------------------------------------------------

- Cinnamon first tries to find a metacity-1/thumbnail.png file in the theme directory
- If it doesn't find any, it looks in /usr/share/cinnamon/thumbnails/metacity-1/

相关内容