mumble-voip / mumble Public
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
Add option to change background color in TalkingUI #5411
Comments
|
Implementing an option to choose a custom color for the background should be relatively easy. If someone wants to give this a try, ping me and I can give you an outline of what changes are likely necessary. Removing the channel name on the other hand is not as that would probably require rewriting large parts of the TalkingUI code. |
|
@Krzmbrzl I'm an undergraduate student looking to contribute to an open source project as part of my Intro to Software Engineering Class. I'm interesting in working on this issue. Would you be willing to help me solve this as my first contribution to an OSS? |
As already stated on Matrix: I will gladly guide you through the process. In fact I will use this as a general motivation to write up a bit of documentation on the topic of how to approach the Mumble source code... |
|
@mhayworth the docs are available at #5500 From there, I would recommend you trying to try to grasp the general concept of the TalkingUI by yourself (you said you wanted to learn that). As a hint: I like to trace down functionality from the "userspace" aka the UI to its actual implementation. For this specific example, (since the general TalkingUI source files are obvious to find - so no need to first search them in general) I would start by searching for the already existing TalkingUI settings and then tracking down where these are actually set and where they are applied. If you have more questions or need more help, feel free to ask either here or on Matrix. |
|
Yeah - these are two different things :) |
|
No - that's the main UI. You can activate the Talking UI from the same dropdown menu that you also use to open the settings (I think it's called |
|
Thanks, I believe I found where the color is determined (please correct me if I'm wrong): TalkingUIEntry.cpp, line 101: m_backgroundWidget->setAutoFillBackground(true); |
|
Yes that sounds about right. However, using the color palette won't work because Qt is really silly in that regard. Since we are using stylesheets in our application, colors can only be set via stylesheets as well. The color palette won't work. You will probably want to use a |
|
gotcha. There already is a |
|
Iirc there should be a member function for changing the background color already. If so, just use that. Otherwise you'd have to extend the class to provide such a function. I think the working principle of it should get clear by looking at the current implementation, but if not feel free to ask. |
|
Hey there, whats the difference between the |
|
and I guess this comment also ties into how we want the user to choose a background color. It seems like a selector is the best option, no? what would be the process for making the color selector pop-up window? Thanks again for all the help |
|
I think you are misunderstanding what a "selector" in this case means. That's a term used in the context of stylesheets - maybe have a look at e.g. https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors So to answer the question: The former is what you want to use. Maybe you have to use a selector in order to prevent the background color to get inherited throughout the entire children of the TalkingUI - not quite sure atm In order for the user to pick a color in the settings, we should probably use https://doc.qt.io/qt-5/qcolordialog.html |
|
Okay, I've created a list of what I've done and what I think I need help with. I have:
How should I go about this? |
|
@mhayworth it might be easiest if you were to create a draft PR at this point, so I could immediately see the exact changes and we could work with that. With regards to your points though:
|
|
I read through your most recent reply and am taking those into consideration. I figured I should just do my pr as-is so you can evaluate what i've done so far. I mentioned this in the pr message, but I chose a QString because the |
|
I was wondering if I could also give this a shot? |
|
@amberhandal there's already a PR for this: #5526 We have a lot of other good issues for first-time contributors:
good first issue
|




Context
Using the TalkingUi as window source in OBS to show viewers who is in your channel and who is speaking. Similar to Discord StreamKit Voice Widget (https://streamkit.discord.com/overlay).
Description
Add option to change the background color to make it easy to apply a chroma key filter for background removal.
Furthermore it could be useful to hide the channel name completely or hide the small border around the channel, but this can be archived through cropping in OBS too.
Mumble component
Client
OS-specific?
No
Additional information
No response
The text was updated successfully, but these errors were encountered: