theming
1.0.0
.
├── color-palettes
├── cursor-themes
├── emoji
├── fonts
├── graphics
├── icon-themes
├── icons
│ └── themes
├── terminal-colors
├── themes
└── wallpapers
回購結構類似於Serenityos在運行實例中的Base/res repo或/res 。文件夾包含全系統資源,除了特定於主題的icons/themes外
首先,確保您擁有成功工作的Serenityos實例。在撰寫本文時,嘗試倉庫內容的推薦過程是手動複製到您的Serenityos分支。在GNU/Linux主目錄上,假設您都有兩個存儲庫
在這種情況下,還假設您想嘗試所有主題回購的所有內容:
$ cd $HOME
$ cp -r $HOME/theming/* $HOME/serenity/Base/res/
然後,您只需要進行以下操作才能構建Serenityos:
$ cd $HOME/serenity
$ Meta/serenity.sh run
在運行的Serenityos實例中,您應該有其他字體,光標主題,圖標主題和主題供使用。
$ cd $HOME/serenity/Ports/serenity-theming
$ ./package.sh
這將下載https://github.com/serenityos/theming repo(特定提交)的內容,並將其安裝在您的構建中。除icon-themes外,大多數資源都可以使用並準備在Serenityos內部使用,因為我們仍然需要手動過程來安裝它們,然後才能進行Meta/serenity.sh run 。
儘管現在的主題回購已成為您的Serenityos構建目錄的一部分,但使用圖標主題需要其他步驟。目前,有幾個圖標主題可以嘗試, Black-and-White , Chillychilly和Durrque 。出於安全目的,創建一個默認圖標主題。
$ cd $HOME/serenity
# create a backup of Default Icon themes, run this command only once
~:serenity $ cp -r Base/res/icons Base/res/icon-themes/Default
# try out Black-and-White Icon theme, the next command will overwrite default icons
~:serenity $ cp -r Base/res/icon-themes/Black-and-White/* Base/res/icons/
# Build and run
~:serenity $ Meta/serenity.sh run
# Revert back to Default Icons
~:serenity $ cp -r Base/res/icon-themes/Default/* Base/res/icons/
or
~:serenity $ git restore Base/res/icons/
# Build and run
~:serenity $ Meta/serenity.sh run
我們期待著很快將這些步驟包裹在一個不錯的GUI界面上。同時,享受:^)