Closed noidilin closed 3 years ago
Currently in flow width is fixed due to it not working well with shadow effect. I have a build from dev branch which you can use to alter the width, this may not be the final build as we need to investigate the issue.
In the mean time you can download this build and adjust your theme: https://ci.appveyor.com/api/buildjobs/42f74cw64sskl8xm/artifacts/Output%2FPackages%2FFlow-Launcher-v1.7.2.exe (from #374 )
To alter the width you should only need override this key in your xaml as
<Style x:Key="WindowStyle" TargetType="{x:Type Window}" BasedOn="{StaticResource BaseWindowStyle}" >
<Setter Property="Width" Value="1000" />
</Style>
This should also keep the query box aligned list box.
Let me know how you go
I tried my custom theme and some other default theme, yet the result are the same.
I specified the width in WindowStyle, but the appearance didn't change.
<Style x:Key="WindowStyle" TargetType="{x:Type Window}" BasedOn="{StaticResource BaseWindowStyle}" >
<Setter Property="Width" Value="1000" />
</Style>
So, I tried the WindowBorderStyle and get the same result as last time.
<Style x:Key="WindowBorderStyle" BasedOn="{StaticResource BaseWindowBorderStyle}" TargetType="{x:Type Border}">
<Setter Property="Width" Value="1000" />
</Style>
have you tried with the build link? https://ci.appveyor.com/api/buildjobs/42f74cw64sskl8xm/artifacts/Output%2FPackages%2FFlow-Launcher-v1.7.2.exe
Install it then change the xaml
@LinGaNinJa how you go with this?
Sorry for the late reply. Turns out I didn't restart flow after adjusting the width of WindowStyle. I used to switch theme in setting to make any adjustment in my custom theme appear.
The result is great! It works as my expectation. (I exaggerate the width increment in order to make the adjustment more clear in screenshot.)
This is original width without any adjustment.
I think that the adjustment with width makes the experience on 4k monitor way more better. Really thanks a lot. Hope this function will exist in the future official release.
Hope this function will exist in the future official release.
Any time. Yep this function will be implemented once we figure out the shadow issue. In the meantime I recommend turning off your auto update and check the release notes before updating that this feature is rolled out.
@jjw24 There is another issue, that the distribution of the resultview is hardcoding, so after changing the width, the alt+n
will distribution on the wrong place. We also need to address that issue.
I want to make the result of dictionary plugin wider. So, I specify the width in the xaml file as I usually do in wox theme. Setting the width property of WindowBorderStyle used to do the job, yet I can't achieve the same result.
Here is the default width.
By the way, I also try to align the query box with the list box, but didn't success. Any suggestion to achieve this result?
Here is the theme.