Browse Source
this ports https://github.com/Electron-Cash/Electron-Cash/pull/1371 including commits: ---patch-4bab816e2c3
Buttons Editor: Make background non-transparent and change to push button There were some issues with transparent backgrounds with QToolButton on Linux and as there is no real reason for them to be transparent we just make them opaque. ---2cb698affc
Pay to editor: Fix size computations to use the proper values Previously this did not take into account the spacing between lines nor the margins of the control and the document. There is also a sensible minimum height of one line now and it expands to up to 10 lines before we show the scroll bar. When the scroll bar is active, we move the buttons so they do not obscure the scroll bar. ---1b7a70f4f5
Pay to editor: Increase height by one if cursor is under buttons ---abd42d9f66
Buttons Editor: Always center if the document is just one line high ---33bd0b82e0
Pay to editor: Make button movement on scrollbar change reliable ---94f8476c2e
Pay to editor: Use document lineCount instead of height ---5bedfce392
Buttons Editor: Improve vertical centering of the buttons, needs to take into account the frame width ---0cd0b490c4
Buttons Editor: Add transparent border which is somehow needed for correct macOS layout
committed by
SomberNight
2 changed files with 47 additions and 14 deletions
Loading…
Reference in new issue