Skip to content
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: 动效增加开关 #614

Merged
merged 1 commit into from
Oct 25, 2024
Merged

feat: 动效增加开关 #614

merged 1 commit into from
Oct 25, 2024

Conversation

Whale107
Copy link
Contributor

@Whale107 Whale107 commented Oct 23, 2024

动效增加开关,通过DGuiApplication::testAttribute(DGuiApplication::HasAnimations)接口和环境变量DTK_DISABLE_ANIMATION_***控制动效总开关和单个动效开关

Log: 动效增加开关

deepin-ci-robot added a commit to linuxdeepin/dtk6widget that referenced this pull request Oct 23, 2024
Synchronize source files from linuxdeepin/dtkwidget.

Source-pull-request: linuxdeepin/dtkwidget#614
deepin-ci-robot added a commit to linuxdeepin/dtk6widget that referenced this pull request Oct 23, 2024
Synchronize source files from linuxdeepin/dtkwidget.

Source-pull-request: linuxdeepin/dtkwidget#614
Comment on lines 24 to 28
#define ENABLE_ANIMATION_MESSAGE (!qEnvironmentVariableIsSet("DTK_DISABLE_MESSAGE"))
#define ENABLE_ANIMATION_LISTVIEWBOUNCE (!qEnvironmentVariableIsSet("DTK_DISABLE_LISTVIREBOUNCE"))
#define ENABLE_ANIMATION_SEARCH (!qEnvironmentVariableIsSet("DTK_DISABLE_SEARCH"))
#define ENABLE_ANIMATION_SWITCHBUTTON (!qEnvironmentVariableIsSet("DTK_DISABLE_SWITCHBUTTON"))
#define ENABLE_ANIMATION_PROGRESSBAR (!qEnvironmentVariableIsSet("DTK_DISABLE_PROGRESSBAR"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这环境变量名字再改改 DTK_DISABLE_MESSAGE 禁用的是 message ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

写漏了个_ANIMATION_

deepin-ci-robot added a commit to linuxdeepin/dtk6widget that referenced this pull request Oct 24, 2024
Synchronize source files from linuxdeepin/dtkwidget.

Source-pull-request: linuxdeepin/dtkwidget#614
deepin-ci-robot added a commit to linuxdeepin/dtk6widget that referenced this pull request Oct 24, 2024
Synchronize source files from linuxdeepin/dtkwidget.

Source-pull-request: linuxdeepin/dtkwidget#614
deepin-ci-robot added a commit to linuxdeepin/dtk6widget that referenced this pull request Oct 24, 2024
Synchronize source files from linuxdeepin/dtkwidget.

Source-pull-request: linuxdeepin/dtkwidget#614
Copy link
Contributor

@kegechen kegechen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

统一使用 DGuiApplicationHelper::testAttribute(DGuiApplicationHelper::HasAnimations)

@kegechen
Copy link
Contributor

deepin-ci-robot added a commit to linuxdeepin/dtk6widget that referenced this pull request Oct 25, 2024
Synchronize source files from linuxdeepin/dtkwidget.

Source-pull-request: linuxdeepin/dtkwidget#614
deepin-ci-robot added a commit to linuxdeepin/dtk6widget that referenced this pull request Oct 25, 2024
Synchronize source files from linuxdeepin/dtkwidget.

Source-pull-request: linuxdeepin/dtkwidget#614
@deepin-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: kegechen, Whale107

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

动效增加开关,通过DGuiApplication::testAttribute(DGuiApplication::HasAnimations)接口和环境变量DTK_DISABLE_ANIMATION_***控制动效总开关和单个动效开关

Log: 动效增加开关
deepin-ci-robot added a commit to linuxdeepin/dtk6widget that referenced this pull request Oct 25, 2024
Synchronize source files from linuxdeepin/dtkwidget.

Source-pull-request: linuxdeepin/dtkwidget#614
@kegechen
Copy link
Contributor

/forcemerge

@deepin-bot
Copy link
Contributor

deepin-bot bot commented Oct 25, 2024

This pr force merged! (status: blocked)

@deepin-bot deepin-bot bot merged commit 9d77c29 into linuxdeepin:master Oct 25, 2024
16 of 21 checks passed
FeiWang1119 pushed a commit to linuxdeepin/dtk6widget that referenced this pull request Oct 28, 2024
Synchronize source files from linuxdeepin/dtkwidget.

Source-pull-request: linuxdeepin/dtkwidget#614
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants