Skip to content

Implementing DEFAULT_TRAY_OFFSET_Y#105

Open
evilbaschdi wants to merge 1 commit intoerez-c137:mainfrom
evilbaschdi:main
Open

Implementing DEFAULT_TRAY_OFFSET_Y#105
evilbaschdi wants to merge 1 commit intoerez-c137:mainfrom
evilbaschdi:main

Conversation

@evilbaschdi
Copy link

Changes were made for accurate positioning of taskbar offsets by converting logic into more reliable math.ceil calculations with less horizontal complexity.

  • Updated the DEFAULT_TRAY_OFFSET_Y to match the previous value of DEFAULT_TRAY_OFFSET_X.
  • Converts horizontal and vertical taskbar logic to use math.ceil for better precision.
  • Rearranged and extended the UI elements for the offsets label, changing horizontal offset to vertical.
  • Added a constant field calculated_height with a default value derived from the metrics' height and margins, but removed a former fallback logic that used to determine the calculation based on taskbar area.

Does not completly solve #104 but provides options to deal with it.

…erting logic into more reliable `math.ceil` calculations with less horizontal complexity.

- Updated the `DEFAULT_TRAY_OFFSET_Y` to match the previous value of `DEFAULT_TRAY_OFFSET_X`.
- Converts horizontal and vertical taskbar logic to use `math.ceil` for better precision.
- Rearranged and extended the UI elements for the offsets label, changing horizontal offset to vertical.
- Added a constant field `calculated_height` with a default value derived from the metrics' height and margins, but removed a former fallback logic that used to determine the calculation based on taskbar area.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant