Skip to content
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

[Modified] UI improvements - round 1 #138

Closed
wants to merge 17 commits into from
Closed

[Modified] UI improvements - round 1 #138

wants to merge 17 commits into from

Conversation

U-C-S
Copy link
Owner

@U-C-S U-C-S commented Jul 8, 2024

Continuation from #137 changes

EDIT: While I can't merge this, I use this as a reference ocassionally

Copy link
Owner Author

@U-C-S U-C-S left a comment

Choose a reason for hiding this comment

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

Comment on lines +33 to +39
<wpfui:TitleBar
Title="Select Browser"
Height="32"
CloseClicked="HideMainWindow"
FontSize="14"
ShowMaximize="False"
ShowMinimize="False" />
Copy link
Owner Author

Choose a reason for hiding this comment

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

The problem with this solution compared to earlier one is that, the window is not easily resizable compared to previous solution. Especially from the top

Copy link
Contributor

Choose a reason for hiding this comment

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

I see what you mean. Looks like WPF-UI issue lepoco/wpfui#972

Comment on lines -24 to -43
var osbuild = Environment.OSVersion.Version.Build;
var backtype = settings.AppSettings?.BackgroundType;

if (settings.AppSettings?.NoWhiteBorder == true) WindowBorder.BorderThickness = new Thickness(0);
if (osbuild < 22000) WindowBorder.CornerRadius = new CornerRadius(0);

if (backtype == "acrylic" && osbuild >= 22523)
{
WindowBackdropType = WindowBackdropType.Acrylic;
}
else if (backtype == "none" || osbuild < 22000)
{
WindowBackdropType = WindowBackdropType.None;
var brush = Color.FromRgb(150, 50, 50);
Background = new SolidColorBrush(brush);
}
else
{
WindowBackdropType = WindowBackdropType.Mica;
}
Copy link
Owner Author

Choose a reason for hiding this comment

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

I still prefer to have acrylic

Might have to revert this back unfortunately, while also trying to support SystemThemeWatcher

Copy link
Contributor

@Jay-o-Way Jay-o-Way Jul 8, 2024

Choose a reason for hiding this comment

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

I agree Mica is better (reason: looks like Win Start menu uses it too)

 <fluentwindow
 WindowBackdropType="Mica"

Is the place for this. Easy change, no need to revert :)

@U-C-S
Copy link
Owner Author

U-C-S commented Jul 8, 2024

@Jay-o-Way Honestly, I am sorry, this is very harder than I imagined because there are too many changes.

As I am also worried that this would lead to wasted efforts from your end, I will still try to figure out ways I can scavenge the few changes I want from this PR but for the last time and further from now on, I have to enforce that I won't merge/review any PR that is not focused on a particular change.

@U-C-S U-C-S added this to the v0.9 milestone Jul 13, 2024
MaxHeight="450"
Deactivated="Window_Deactivated"
ExtendsContentIntoTitleBar="True"
Icon="/Windows/internet.ico"
PreviewKeyUp="Window_KeyEvents"
SizeChanged="Window_SizeChanged"
Topmost="True"
WindowBackdropType="Mica"
Copy link
Contributor

@Jay-o-Way Jay-o-Way Jul 14, 2024

Choose a reason for hiding this comment

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

Suggested change
WindowBackdropType="Mica"
WindowBackdropType="Acrylic"

image

Comment on lines +34 to +37
Title="Select Browser"
Height="32"
CloseClicked="HideMainWindow"
FontSize="14"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Title="Select Browser"
Height="32"
CloseClicked="HideMainWindow"
FontSize="14"
Title="Select Browser"
CloseClicked="HideMainWindow"

Height and FontSize don't need to be hardcoded. There's a possibility the size isn't even implemented: lepoco/wpfui#937

</Grid>

<Grid Grid.Row="2">
<Grid Grid.Row="2" Margin="0,0,0,8">
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<Grid Grid.Row="2" Margin="0,0,0,8">
<Grid Grid.Row="2">

<wpfui:Button
MinWidth="120"
HorizontalAlignment="Center"
Appearance="Transparent"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Appearance="Transparent"

<wpfui:Button
MinWidth="120"
Margin="0,0,8,0"
HorizontalAlignment="Stretch"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
HorizontalAlignment="Stretch"

Content="Create" />
<wpfui:Button
MinWidth="120"
HorizontalAlignment="Stretch"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
HorizontalAlignment="Stretch"

these have no function here

@U-C-S
Copy link
Owner Author

U-C-S commented Jul 14, 2024

Introduced some changes (#140) from here, related to Controls.BrowserList (now, its BrowserButton)

@U-C-S U-C-S modified the milestones: v0.9, v0.10 Aug 16, 2024
@U-C-S U-C-S closed this Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants