pygame_gui icon indicating copy to clipboard operation
pygame_gui copied to clipboard

The shadowwidth of the default button and window is a little large. I want to reduce this value.

Open LondonClass opened this issue 1 year ago • 3 comments

Under the default theme, when I create a button, it seems that there is still room for the button, but the button cannot display full text. When I create a window, the actual window size is 30 pixels smaller than expected. This is confusing. I hope to reduce the shadowwidth of the default theme to solve this problem.

LondonClass avatar Jan 17 '24 15:01 LondonClass

I don't really want to change the default theming size, but I would like to add an alternative way to create a window or a panel that has a certain interior size (i.e. excluding title bars, borders, shadows. Probably a little shim class called something like InteriorDimensions() that you could pass in and it would take the input size and output final dimensions that worked based on the current theming.

The text rendering getting clipped too tightly is a separate bug that has needed fixing for a while.

MyreMylar avatar Feb 04 '24 20:02 MyreMylar

I don't really want to change the default theming size, but I would like to add an alternative way to create a window or a panel that has a certain interior size (i.e. excluding title bars, borders, shadows. Probably a little shim class called something like InteriorDimensions() that you could pass in and it would take the input size and output final dimensions that worked based on the current theming.

The text rendering getting clipped too tightly is a separate bug that has needed fixing for a while.

FV1_K)_NK2G APENHQ%OZC6

The window is smaller than the screen. Black edges appeared.

T0E%@ASSO` FXU 7D2@~1N5

I wanted to arrange the two windows tightly, but there was a 30px seam.

LondonClass avatar Feb 05 '24 07:02 LondonClass

RQ8V$B@E)B5G)8$V`BS2P%U

Small buttons cannot accommodate enough text. It looks like it can accommodate at least 4 letters, but in reality it displays two.

LondonClass avatar Feb 05 '24 08:02 LondonClass

Resolved in #579

MyreMylar avatar Apr 13 '24 16:04 MyreMylar