[deepin Wishes] How can I add an additional Accent Color
poster avatar
2023-01-05 16:13


Perhaps this is a wrong category to ask this but here we go, I want to add an additional accent color either "cc0000" or "ee1c25" or something else deep red.

I located that the relevant class is https://github.com/linuxdeepin/dde-control-center/blob/ed696dabf41bee19f28758d2589dac20b866c356/src/frame/window/modules/personalization/personalizationgeneral.cpp

however i do want to test my changes, is there a relevant documentation about running deepin for development, (note i am a java based web developer , however my linux development experience is none-existant)

additionally is it an ok change to add to the general repo or how can i just tweak my own system to highjack one of the colors.


Reply Favorite View the author
All Replies
2023-05-11 09:00

If you want to add an additional accent color to Deepin's control center, you'll need to follow these steps:

Set up the development environment:

Install Deepin OS on a virtual machine or a separate partition to have a testing environment.
Install the necessary development tools such as compilers, build systems, and dependencies. You may need to refer to Deepin's developer documentation for specific requirements.
Clone the Deepin control center repository:

Go to the GitHub repository you mentioned: https://github.com/linuxdeepin/dde-control-center.
Clone the repository to your local machine using Git. You can use the following command:

git clone https://github.com/linuxdeepin/dde-control-center.git

Make the necessary changes:

Open the personalizationgeneral.cpp file in a text editor. The file path is src/frame/window/modules/personalization/personalizationgeneral.cpp.
Look for the section where accent colors are defined or managed. This is where you'll add your additional accent color.
Add your desired color code ("cc0000" or "ee1c25") to the list of available accent colors. Make sure to follow the existing format and conventions.
Build and test your changes:

Follow the build instructions provided in the repository's documentation to compile the control center.
Once the build process is complete, run the modified control center on your Deepin testing environment.
Test the changes by accessing the personalization settings and checking if the additional accent color is available and functional. Bookiemarket Mobile

Reply View the author