fyne-io / fyne

Cross platform GUI toolkit in Go inspired by Material Design
https://fyne.io/
Other
25k stars 1.39k forks source link

blured scaled zoom gui #4819

Open vizvasrj opened 6 months ago

vizvasrj commented 6 months ago

Checklist

Describe the bug

there is two version of scaling thing it uses and how to fix it i don't know. when i drag from 720 pixel to 1080 pixel monitor the scaled zoomed of this gui why there is so many drastic changes in size 720 pixel is of laptop screen 15.5 inch may be and 1080 pixel is of monitor 24 inch some what.

How to reproduce

go run main.go

Screenshots

1920x1080 display 1366x768 display

Example code

package main

import (
    "fyne.io/fyne/v2/app"
    "fyne.io/fyne/v2/widget"
)

func main() {
    a := app.New()
    w := a.NewWindow("Hello World")

    w.SetContent(widget.NewLabel("Hello World!"))
    w.ShowAndRun()
}

Fyne version

2.4.5

Go compiler version

go1.22.1

Operating system and version

debian linux

Additional Information

No response

andydotxyz commented 5 months ago

Our Linux driver tries to ensure consistent window size according to the DPI of the monitor it is on. I tried the ruler app you are using and it gave me inconsistent results.

By placing an actual ruler on the window you should see that it is the same physical size on each of the screens (it thinks all of my screens from 14" to 27" are 17" monitors?)

If that is not the case then perhaps some of the metadata about your monitor is not being read correctly. Please try running the fyne_demo app and going to the "Advanced" tab - that will list the details about how scale is calculated and you can move it to each screen to record the information.