openMittsu icon indicating copy to clipboard operation
openMittsu copied to clipboard

Haiku: broken timeline view

Open ghost opened this issue 3 years ago • 2 comments

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

ghost avatar Aug 20 '22 05:08 ghost

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?

blizzard4591 avatar Aug 23 '22 11:08 blizzard4591

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.

ghost avatar Aug 23 '22 19:08 ghost