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

Added implementation of the appearance of the toggle's disabled state. #232

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

MlDenis
Copy link
Contributor

@MlDenis MlDenis commented May 6, 2024

No description provided.

src/corelib/ui/widgets/toggle/toggle.cpp Outdated Show resolved Hide resolved
src/corelib/ui/widgets/toggle/toggle.cpp Outdated Show resolved Hide resolved
src/corelib/ui/widgets/toggle/toggle.cpp Outdated Show resolved Hide resolved
QPainter shadowPainter(&shadow);
shadowPainter.setCompositionMode(QPainter::CompositionMode_DestinationIn);
shadowPainter.fillRect(shadow.rect(), QColor(0, 0, 0, 255 * opacity));
shadowPainter.end();
Copy link
Member

Choose a reason for hiding this comment

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

зачем это нужно делать?

Copy link
Contributor Author

@MlDenis MlDenis May 8, 2024

Choose a reason for hiding this comment

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

Делаю тень чуть элегантней

src/corelib/ui/widgets/toggle/toggle.cpp Outdated Show resolved Hide resolved
@MlDenis MlDenis requested a review from dimkanovikov May 8, 2024 12:46
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.

2 participants