-
-
Notifications
You must be signed in to change notification settings - Fork 685
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
background_color
Transparency Fixes
#2484
Open
proneon267
wants to merge
66
commits into
beeware:main
Choose a base branch
from
proneon267:transparency_fix
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 53 commits
Commits
Show all changes
66 commits
Select commit
Hold shift + click to select a range
1e75114
Fixed transparency related bugs
proneon267 1e075fa
Minor tweaks
proneon267 ca50f58
Fixed cocoa table widget
proneon267 6c1aeea
Added changelog
proneon267 24abf08
Fixed test
proneon267 a94f0de
Fixed iOS progressbar
proneon267 c30aa56
Fixed android canvas test
proneon267 6fe78dd
Removed mocking from android canvas test
proneon267 4a242dd
Removed test debugging modification
proneon267 054e07b
Fixed android divider background_color
proneon267 6b1bf9e
Empty commit for CI
proneon267 4b5ed6f
Fixed winforms divider implementation
proneon267 77df2e9
Fixed winforms label transparency
proneon267 6981a7a
Fixed winforms box transparency
proneon267 b2ca091
Fixed winforms box test
proneon267 1b3122c
Fixed ackground_color and transparency on WinForms
proneon267 c767a5b
Empty commit for CI
proneon267 9921d79
Preliminary test to check for failures on all platforms
proneon267 06d40e1
Minor change on probes to run the tests
proneon267 9254e18
Fix winforms implementation and tests
proneon267 e53879d
Minor change on winforms
proneon267 d43aba4
Empty commit for CI
proneon267 059578f
100% coverage on winforms
proneon267 298d460
100% coverage on android
proneon267 c6382c3
Merge branch 'beeware:main' into transparency_fix
proneon267 e5e3e07
Minor modification on testbed
proneon267 ca4d5d9
Merge branch 'main' of https://github.com/proneon267/toga into transp…
proneon267 8c62422
Minor fix
proneon267 b0c8613
Merge branch 'transparency_fix' of https://github.com/proneon267/toga…
proneon267 b6cf7d5
Merge branch 'beeware:main' into transparency_fix
proneon267 4b7991d
Minor change on gtk
proneon267 9e354f8
Empty commit to restart CI for macOS
proneon267 71f461b
Minor modifications for testbed
proneon267 b2f73a7
Modifications on iOS
proneon267 a0e141f
Minor modification for transparency
proneon267 350b9d0
Minor modification on testbed
proneon267 aad928c
Minor modification on android test backend
proneon267 9e11129
Modifications on cocoa
proneon267 4aaedd4
Minor modification on cocoa
proneon267 a1cf579
Code cleanups
proneon267 2bb6a39
Fix typo
proneon267 c9c714e
Merge branch 'main' into transparency_fix
freakboy3742 553ac6e
Revert name changes
proneon267 2f657db
Merge branch 'transparency_fix' of https://github.com/proneon267/toga…
proneon267 f63859c
Re: Revert name changes
proneon267 3e0f883
Merge branch 'beeware:main' into transparency_fix
proneon267 6f75e5f
Re: Revert name changes
proneon267 a88cc13
Re: Revert name changes
proneon267 221fd10
Fixed background color assertion
proneon267 dbe7b42
Added default background color attribute to winforms widgets
proneon267 3054df1
Removed unused branch
proneon267 135741f
Modified as per review
proneon267 5991cd2
Modified as per review
proneon267 165d4b9
Update testbed/tests/widgets/test_button.py
proneon267 b2d0c47
Update testbed/tests/widgets/test_button.py
proneon267 a077b0e
Modified as per review
proneon267 d2bfbfb
Merge branch 'transparency_fix' of https://github.com/proneon267/toga…
proneon267 544802c
Merge branch 'beeware:main' into transparency_fix
proneon267 db05029
Added default background color attribute to iOS widgets
proneon267 f7687a8
Added default background color attribute to iOS widgets
proneon267 4e4a82e
Update 2484.bugfix.2.rst
proneon267 0ff7752
Merge branch 'beeware:main' into transparency_fix
proneon267 7d0515e
Merge branch 'main' into transparency_fix
proneon267 c0d8b5f
Updated to latest codebase
proneon267 479449a
Disable background color csettingon Divider widget
proneon267 19c0d02
Typo Fix
proneon267 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
from android.widget import RelativeLayout | ||
|
||
from toga.colors import TRANSPARENT | ||
|
||
from .base import Widget | ||
|
||
|
||
class Box(Widget): | ||
def create(self): | ||
self.native = RelativeLayout(self._native_activity) | ||
|
||
def set_background_color(self, value): | ||
self.set_background_simple(value) | ||
def set_background_color(self, color): | ||
self.set_background_simple(TRANSPARENT if color is None else color) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This is a pattern that is repeated throughout the code (on multiple backends). It seems to me like this should be a flag on the widget so that it can be implemented once, rather than repeating the implementation everywhere.