Skip to content

Conversation

onesounds
Copy link
Contributor

@onesounds onesounds commented Oct 22, 2021

enhancements:

  • ignore width in theme
  • min 400, max 900. default 580, tick 10
  • Reflected in real time when the window is on.
  • also address the issue where max result displayed by the query window not reflected in real-time

outstanding issue

  • It's not reflected in the preview window. (I didn't make it. Do we need it?)
  • If you turn off shadow mode, there are some themes that are not reflected.
  • Some themes work even when shadows are off.
  • when I test it, even though the content is the same theme, (I copied metro server to light) something works and something not works.

close #766

@onesounds
Copy link
Contributor Author

Taoo modified it and now it works well functionally. When the slider is dragged, the query box is forcibly displayed so that changes can be viewed in real time. (It's more convenient for the user to check every time.) However, there is a problem when setting a specific point on the slider.

In this case, a kind of conflict occurs with the 'Hide when lost focus' setting. (OnDeactivated in mainwindow.xaml.cs) When using a slider, that option should not work, but no good way comes up with it. There are several attributes related to drag. https://newbedev.com/wpf-slider-with-an-event-that-triggers-after-a-user-drags

The simplest way is to make the slider only draggable.(in this case, the hidden focus setting is ignored, because user holding drag thumb.). I don't like it because it restricts general manipulation.

Clear query to prevent large area of window preventing user change width.
@taooceros
Copy link
Member

I use a kind of dirty method to handle this. If it is considered too weird, I think don't showing the width is also reasonable.

@taooceros
Copy link
Member

hmmmm I think there may exist some race tracing issue here..... Not sure how to solve that

@taooceros
Copy link
Member

Hmmm the behavior is not good enough. Too much flickering appears. Maybe we show the width change in the preview panel?

@taooceros
Copy link
Member

image
Is it possible to add some space here

@onesounds
Copy link
Contributor Author

onesounds commented Oct 23, 2021

Is it possible to add some space here

added height.

Hmmm the behavior is not good enough. Too much flickering appears. Maybe we show the width change in the preview panel?

yeah, I think it is more simple solution. I think this is enough.

}

var width = Settings.WindowSize;
windowStyle.Setters.Add(new Setter(Window.WidthProperty, width));
Copy link
Member

Choose a reason for hiding this comment

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

we don't need that right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

maybe?

Copy link
Member

Choose a reason for hiding this comment

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

Have you remove all the width setting in the theme?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't do it yet. Should I?

Copy link
Member

@taooceros taooceros Oct 30, 2021

Choose a reason for hiding this comment

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

haven't this pr done that job? #755

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did so only for the elements inside the window. The themes currently pushed are fixed in window size.

Copy link
Member

Choose a reason for hiding this comment

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

ok nvm I remember the setter will be override by direct setting the width. Therefore, it shouldn't be a problem.

@jjw24
Copy link
Member

jjw24 commented Nov 4, 2021

@onesounds @taooceros could we resolve the conflict in this one please

Copy link
Member

@jjw24 jjw24 left a comment

Choose a reason for hiding this comment

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

looks good. let's get the conflict resolved and merge in

@taooceros
Copy link
Member

the conflict is a bit hard to resolve. I will do that tonght.

@jjw24 jjw24 added the bug Something isn't working label Nov 4, 2021
@jjw24 jjw24 added this to the 1.9.0 milestone Nov 4, 2021
@onesounds
Copy link
Contributor Author

the conflict is a bit hard to resolve. I will do that tonght.

It's easy for me to do because I did it when I made my version.
I don't know if it's okay to do it like this. anyway I merged with dev and pushed again.

@taooceros
Copy link
Member

taooceros commented Nov 5, 2021

the conflict is a bit hard to resolve. I will do that tonght.

It's easy for me to do because I did it when I made my version. I don't know if it's okay to do it like this. anyway I merged with dev and pushed again.

I think you have done it right.
Let me take a check.

@taooceros
Copy link
Member

I add auto reformat from plugin https://github.com/Xavalon/XamlStyler

@taooceros taooceros requested review from jjw24 and taooceros November 5, 2021 17:26
@taooceros taooceros mentioned this pull request Nov 5, 2021
@jjw24 jjw24 changed the title Width in setting add Width in setting and fix max result displayed not reflected in real-time Nov 8, 2021
@jjw24 jjw24 changed the title add Width in setting and fix max result displayed not reflected in real-time Add width in setting and fix max result displayed not reflected in real-time Nov 8, 2021
@jjw24 jjw24 merged commit 8942e55 into Flow-Launcher:dev Nov 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants