-
Notifications
You must be signed in to change notification settings - Fork 50
feat: add icon to submenu #277
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
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
e8adcda
feat(macos): add icon setting for menu items
s00d 872ad25
feat(submenu): add set_icon method to change menu item icons
s00d 365e66f
chore(example): add submenu with icons to the window menu
s00d 876f042
feat(macos): add support for native icons in menu items
s00d b1adc81
feat(tui): simplify import statements and update submenu icon handling
s00d 959aa7b
chore(example): add support for native icons in submenu items
s00d 2bc706a
fix(submenu): format import statements for better readability
s00d e074079
feat(windows): add support for submenu icons in the menu system
s00d 72feadf
fix(macos): update icon handling for menu items
s00d 5a7b57b
refactor(src/main): improve code formatting and readability
s00d 1ea4b13
feat(target): add `gtk` dependency for Linux support in Cargo.toml
s00d 3241cae
feat(target): add `gtk` dependency for Linux support in Cargo.toml
s00d 90c8d44
feat(linux): add GTK prelude import for Linux platform support
s00d 9444fbe
feat(gtk): enhance menu item creation with customizable layout
s00d cd523de
Merge branch 'dev' into dev
s00d 607e660
feat(items): add new methods for creating submenus with icons
s00d bddb6c3
feat(submenu): add support for icons in submenu builder
s00d a7fdc4b
refactor(gtk): simplify context menu item addition and signal connect…
s00d 2f04746
feat(linux): implement context menu for GTK window
s00d a706719
feat(platform_impl): add support for icons in menu items
s00d 72241a9
fix(windows-common-controls): remove temporary window comment
s00d df82aff
fix(windows): correct method call for internal_id retrieval
s00d 1e106c1
refactor(windows): simplify menu item info setting
s00d 60dc41d
refactor(gtk): streamline menu item handling by reducing block scope
s00d 0d60839
Merge branch 'dev' into dev
s00d 4e50fe5
refactor(platform_impl): streamline GTK menu connection closures
s00d 9926a23
fix(gtk): simplify menu item handling in context menu
s00d ed7fe4d
style(gtk): format long lines in `mod.rs` for better readability
s00d 0dbf3b2
refactor(gtk): remove unnecessary line breaks in menu item creation
s00d 1d3dfa2
feat(platform_impl): update menu item info parameter from FALSE to 0
s00d 08f2bc5
revert common controls example changes
amrbashir 819a08b
revert 0i32 back to FALSE, revert WM_NCPAINT redundant block, remove …
amrbashir 8630249
change file, revert constructor items on Submenu, builder is enough
amrbashir 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| --- | ||
| "muda": "patch" | ||
| --- | ||
|
|
||
| Add support for icons on `Submenu` so we added: | ||
|
|
||
| - `Submenu::set_icon` | ||
| - `Submenu::set_native_icon` | ||
| - `SubmenuBuilder::icon` | ||
| - `SubmenuBuilder::native_icon` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.