-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: 扩展主题,修改原有主题逻辑 #300
feat: 扩展主题,修改原有主题逻辑 #300
Conversation
1. 用户可以在/usr/share/terminalwidget5/color-schemes下按格式新增自己的主题会加到主题可选列表中 2. 修改终端主题随背景色变化,hsv模式下亮度>=192后采用深色模式 3. 减少代码逻辑 Log: 扩展主题,修改原有主题逻辑
CLA Assistant Lite bot:
|
@@ -2059,37 +1998,28 @@ void MainWindow::checkThemeItem() | |||
|
|||
QAction *action; | |||
QString expandThemeStr = THEME_NO; | |||
// 从配置取值 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里可以给expandThemeStr进行一个初始化的改。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
下面的逻辑就是在初始化expandThemeStr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
下面的逻辑就是在初始化expandThemeStr
就是说合成一行。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
改了
QAction *pAction = nullptr; | ||
m_normalWindow->checkExtendThemeItem("Theme1", pAction); | ||
EXPECT_EQ(m_normalWindow->themeOneAction, pAction); | ||
//TEST_F(UT_MainWindow_Test, checkExtendThemeItemTest) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这一大段注释掉的是???
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Theme1"这种的都删掉了,不需要了,可能需要改下UT
合并无用行
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ArchieMeng, DaiZW007 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
是否同时支持在 ~/.config/deepin/deepin-terminal/ 新增自己的主题, /usr 是系统级目录,需要 root 权限才能修过,有些时候改 HOME 目录更方便 |
|
linuxdeepin/developer-center#5160 问题是 customTheme.colorscheme 只有一个,不能保存不同主题 而且手动修改customTheme.colorscheme,每次切换会把 PS1/2 的修改会被覆盖掉,切换界面的设置是不读取 customTheme.colorscheme 的 |
Log: 扩展主题,修改原有主题逻辑