Browse Source
this ports https://github.com/Electron-Cash/Electron-Cash/pull/1371 including commits: ---masterbab816e2c3Buttons 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. ---2cb698affcPay 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. ---1b7a70f4f5Pay to editor: Increase height by one if cursor is under buttons ---abd42d9f66Buttons Editor: Always center if the document is just one line high ---33bd0b82e0Pay to editor: Make button movement on scrollbar change reliable ---94f8476c2ePay to editor: Use document lineCount instead of height ---5bedfce392Buttons Editor: Improve vertical centering of the buttons, needs to take into account the frame width ---0cd0b490c4Buttons Editor: Add transparent border which is somehow needed for correct macOS layout
2 changed files with 47 additions and 14 deletions
Loading…
Reference in new issue