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

Fuzzy button outline #2937

Closed
Pekshev opened this Issue Apr 21, 2017 · 5 comments

Comments

Projects
None yet
3 participants
@Pekshev

Pekshev commented Apr 21, 2017

After the upgrade from 1.1.2.0 to 1.5.0.23, some of the buttons began to look weird-as if blurred along the contour:
screenshot_1
On all buttons same style:

<Style x:Key="BtStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource SquareMetroButton}">
    <Setter Property="BorderThickness" Value="1" />
</Style>
@punker76

This comment has been minimized.

Member

punker76 commented Apr 21, 2017

@Pekshev From 1.1.2 to 1.5.0 is a big step. Can you give us a sample app with this? Or show us the complete Xaml of the window? Do you use a special DPI setting? Or other styles? thx

@Pekshev

This comment has been minimized.

Pekshev commented Apr 21, 2017

No problem. Demo project from screen - https://modplus.org/tmp/mpMsgTest.zip
i dont use anything else - only mahapps.metro.dll

@punker76

This comment has been minimized.

Member

punker76 commented Apr 23, 2017

@Pekshev Thx for the sample. I'll look for the style which is a older one.

@punker76 punker76 added this to the 1.6.0 milestone Apr 23, 2017

@punker76 punker76 self-assigned this Apr 23, 2017

@Pekshev

This comment has been minimized.

Pekshev commented Apr 24, 2017

I have old versions =)

@n00bje

This comment has been minimized.

Contributor

n00bje commented Oct 2, 2017

@punker76 Adding SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" to the Border in the SquareMetroButton-style and adding <Setter Property="SnapsToDevicePixels" Value="True" /> fixes this.
(line 990 in Controls.Buttons.xaml)

EDIT: made my first ever PR. Let me know if I did it correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment