-
-
Notifications
You must be signed in to change notification settings - Fork 455
Search window's position settings #1367
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
Conversation
|
|
- Add Mouse Center Top position - remove RememberLastLaunch bool (moved to Launcher Positioning)
- Remove comment
d8cb0ba to
3c8acaa
Compare
Flow.Launcher/MainWindow.xaml.cs
Outdated
| private void InitializePosition() | ||
| { | ||
| if (_settings.RememberLastLaunchLocation) | ||
| if (_settings.LauncherPosition == "RememberLastLaunchLocation") |
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.
Should use a switch for this
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.
Applied it.
Flow.Launcher/MainWindow.xaml.cs
Outdated
| return top; | ||
| } | ||
|
|
||
| public double WindowRight() |
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.
what's this for?
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 Right (screen) position. it using in top-right option.
| public LauncherPositions Value { get; set; } | ||
| } | ||
|
|
||
| public List<LauncherPosition> LauncherPositions |
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 clever, we may use this structure for all the combobox. Probably we want to cache this result? But that may break some behavior when changing language.
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 just copied and pasted the existing structure. 😋
- Change String to enum. - Remove duplicated code.
Flow.Launcher/MainWindow.xaml.cs
Outdated
| Left = WindowLeft(); | ||
| Top = WindowTop(); | ||
| break; | ||
| case LauncherPositions.MouseScreenCenterTop: | ||
| Left = WindowLeft(); | ||
| Top = 10; | ||
| break; | ||
| case LauncherPositions.MouseScreenLeftTop: | ||
| Left = 10; | ||
| Top = 10; | ||
| break; | ||
| case LauncherPositions.MouseScreenRightTop: | ||
| Left = WindowRight(); |
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.
We may want to change name of all three method here.
Flow.Launcher/SettingWindow.xaml.cs
Outdated
| pluginFilterTxb.Focus(); | ||
| } | ||
|
|
||
| private void LauncherPositionSelectedIndexChanged(object sender, SelectionChangedEventArgs e) |
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.
what's this method for?
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 don't know either. It seems like a code that VS automatically makes. When I'm making something, I sometimes see this blank code.
|
@taooceros @onesounds could we merge dev in please. |
|
|
@onesounds let me know when pr is good to go again. |
|
One thing from my testing prior to your recent merge Dev commits @onesounds, was that on a fresh install, the query window starts up on the top left corner. I wonder if we should have |
I'll check. I think remember last position should default and it should be center when fresh install. anyway I noticed little bugs. I'll mention to you when I think it's OK to review |
This will have the query window stay on the same monitor screen when dual or more monitors are in use, wouldn't the mouse focus option be better for people who use multiple monitors (especially if they are new to flow and don't know you can change those options yet)? |
Well... OK. I think you are right too. default will be 'mouse focused screen center'. |
…uncher into PositionOption
|
OK done.
Test Cases
|
jjw24
left a comment
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.
👍 👍 👍
Features
Test Case
What to do later