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

Haiku: broken timeline view #83

Open
ghost opened this issue Aug 20, 2022 · 2 comments
Open

Haiku: broken timeline view #83

ghost opened this issue Aug 20, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented Aug 20, 2022

Hi, I've just tried openMittsu on Haiku for the first time. Sadly it does not quite work yet, the timeline gets an unusable contrast (and the bubbles seem very huge). Potentially the application is using some system colors and some not from the system.

Timeline view: https://0x0.st/oLks.png

And the patch i used to build on haiku:

diff --git a/src/utility/OsDetection.h b/src/utility/OsDetection.h
index 8501cd6..6e3dcc4 100644
--- a/src/utility/OsDetection.h
+++ b/src/utility/OsDetection.h
@@ -24,7 +24,10 @@
 #      include <Psapi.h>
 #      include <direct.h>
 #      define GetCurrentDir _getcwd
-
+#elif defined __HAIKU__
+#      define HAIKU
+#      define NOEXCEPT noexcept
+#      define GetCurrentDir getcwd
 #else
 #      error Could not detect Operating System
 #endif

If there is interest in a haiku port I can make a pull request for the patch above.

regards

@blizzard4591
Copy link
Owner

I had not heard of Haiku OS before - its a surprise to me that it works at all with all dependencies, to be honest. But I guess most of that hard work is done by Qt.

The colors of the bubbles are self-defined, I guess that than clashes with system colors here. The sizes look a bit large, what resolution are you using?

@ghost
Copy link
Author

ghost commented Aug 23, 2022

My desktop resolution is 1920x1200

Qt is beeing rendered with a Haiku specific drawing engine which uses the "normal" drawing of controls, that is they appear as the native controls would, though the interaction is still qts.

Anyhow, qt is quite portable mostly :)

One idea to fix this might be to set the bubble colors as a mix of the system color with the bubble color? Though I am not that versed with the qt api to know how feasible that is.

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

No branches or pull requests

1 participant