Skip to content
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

Layout tweaks #59

Merged
merged 2 commits into from
May 24, 2024
Merged

Layout tweaks #59

merged 2 commits into from
May 24, 2024

Conversation

humdingerb
Copy link
Member

No description provided.

* Make window resizable
* Remove unneeded background BView
* Align textcontrols in grid
@humdingerb
Copy link
Member Author

These deal with the transfer and split/transaction windows. It among other things uses a bit more spacing.

  • Transfer
    Before:
    transfer_old

After:
transfer_new

  • Split/Transaction:
    Before:
    transaction_old

After:
transaction_new

* Use a checkbox instead of a button for "Show/Hide split".

* Add a horizontal separator as a visual to the "Split" part.

* Keep all text fields a fixed size, only grow the Payee and Memo
  fields when the window is resized.

* Add labels above the text fields in the "Split" view, too.

* Remove the "frame" variable when creating the TransactionEditWindow.
  As we use layout management, there's no need to supply a window size.
  This has the nice consequence that wen opened with the "Split" hidden,
  the window isn't taller than needed.
  Unfortunately, the window doesn't auto-shrink when hiding the "Split"
  again...
  Also: For some reason the window is only horizontally resizable when
  the "Split" is shown. Why?

* Removed unneeded member variables for labels and the help button.

* Removed no longer needed Zeta work-around.

* Use "clang-format off/on" around layout code blocks to avoid clang
  'fixing' the style. Thanks for the heads-up, @korli!
@korli
Copy link
Contributor

korli commented May 23, 2024

LGTM

@humdingerb
Copy link
Member Author

Let's merge then!

@humdingerb humdingerb merged commit 90845f5 into HaikuArchives:master May 24, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants