-
-
Notifications
You must be signed in to change notification settings - Fork 448
Tray Menu Redesign #765
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
Tray Menu Redesign #765
Conversation
Flow.Launcher/MainWindow.xaml.cs
Outdated
var menu = contextMenu; | ||
|
||
var header = new MenuItem() { Header = "Flow Launcher", IsEnabled = false }; | ||
var open = new MenuItem() { Header = InternationalizationManager.Instance.GetTranslation("iconTrayOpen") }; | ||
var settings = new MenuItem() { Header = InternationalizationManager.Instance.GetTranslation("iconTraySettings") }; | ||
var exit = new MenuItem() { Header = InternationalizationManager.Instance.GetTranslation("iconTrayExit") }; | ||
menu.Items[0] = header; | ||
menu.Items[1] = open; | ||
menu.Items[2] = settings; | ||
menu.Items[3] = exit; | ||
open.Click += (o, e) => Visibility = Visibility.Visible; | ||
settings.Click += (o, e) => App.API.OpenSettingDialog(); | ||
exit.Click += (o, e) => Close(); |
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.
For this part, why not keep the original one? I don't see any difference from that. Just need to change 0 to 1, 1 to 2, 2 to 3 because you have added a header.
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.
original : ContextMenuStrip
New : Context Menu
Just curious, where do you change the style of the tray in this pull request? |
I don't want use nuget. so I use Notifyicon + Context Menu. when Right click the notifyicon, conetextmenu will open. Where is Style? Since I already satisfied the requirements I wanted and there was a sense of unity, This is because the button size is larger and it is good to see. so I just left them as they were. I'll probably style it again later, (for dark mode) but I'll finish it like this. it's the why don't have new style. I think UpdateNotifyIconText() (for language string update realtime) code is little bad. |
sure
That's interesting. How is that related to the new context menu? |
I don't know why exactly. |
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.
I will approve. Though I don't understand how the contextmenustrip works, it doesn't affect the functionality.
#763
Other pr contents were removed and simplified.