Colour the error, info and warning lines in the Debug Window#2275
Open
zedwick wants to merge 14 commits into
Open
Colour the error, info and warning lines in the Debug Window#2275zedwick wants to merge 14 commits into
zedwick wants to merge 14 commits into
Conversation
I updated QtQuick and QtQuick.Controls to get some newer features, which lost a lot of implicit styling from QtQuick.controls 1.x. So I have restyled using HifiConstants.colors from stylesUit. The background is a darker gray, and the scrollbar is a little different.
ada-tv
requested changes
May 21, 2026
Co-authored-by: Ada <ada+github@thingvellir.net>
ada-tv
approved these changes
May 21, 2026
Collaborator
Author
|
I had a bit of trouble with scrolling, but I think I have it sorted properly now so that removing log lines no longer breaks the built-in automatic scrolling. I kept in some manual scrolling just in-case, but we do it less often than before. |
Collaborator
Author
ada-tv
requested changes
Jun 27, 2026
Comment on lines
+110
to
+115
| Text { | ||
| text: "-->" | ||
| color: hifi.colors.lightGrayText | ||
| horizontalAlignment: Text.AlignHCenter | ||
| clip:true | ||
| } |
Collaborator
There was a problem hiding this comment.
A label next to the control is good, the arrow isn't necessary.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The Debug Window shows all script log lines in monocolour:
Which makes it difficult to spot error messages, so I added colours:
In this PR it also shows a little message before the first log lines show up:
Users can also no longer edit the log lines shown in the Debug Window, but can select and copy the text.
Note: I updated QtQuick and QtQuick.Controls to get some newer features, which lost a lot of implicit styling from QtQuick.controls 1.x. So I have restyled using HifiConstants.colors from stylesUit. The background is a darker gray, and I had to add the scrollbar back in; it is a little different.