Closed ghost closed 10 years ago
Hi Andrew,
Well the buttons you've created now work with GTK2 themes, but the buttons should be made to match the look of the QT & GKT themes.
The buttons look like Tcl/Tk...
Cheers
They are not really buttons, rather they are labels I've duded out to look a bit like buttons. I'd say they work like buttons but they really don't, the QTableWidget that they live in processes the mouse click over the label making the label appear to act as a button. That is probably why they are working with the theme when others don't.
To add a real button adds enormously to the complexity of that widget, and I'd actually have to use a different (more complicated but more generic) base class which means rewriting a large section of code.
Hi Andrew,
Look don't take me wrong, I'm on your side you're doing a great job!
But as I said, this looks like Tcl/Tk and it looks out of place, really takes away from the aesthetics of the gui, so you don't want this.
The way you had it look originally in QT looked nice, but for some reason as I mentioned it wouldn't work with GKT2 themes, if it could of stayed the same where it just highlighted it, aesthetically speaking that was a lot nicer
No problems here. Just to make sure we're talking about the on/of buttons in the technology box on the first tab, right? I hope so as they are the only ones added recently.
The problem I've got is the table can contain widgets, but the documentation is very clear that they are to be used for static display only. There are no functions provided to do any sort of user interaction with them (believe me, I've looked). My button like labels was an attempt to code around that limitation. I've got it in the back of my mind that I'd also like to have a green and red golf ball as well as the text display in those fields, and I actually can't do that in a single label.
I'm thinking now of maybe putting in a custom push button that I derive from the standard push button. Push buttons can display both icons and text and should follow somewhat the theme styles. These controls are created dynamically, and they have to be because we don't know from moment to moment how many technologies will be found. In the custom button I can add a custom signal that can identify which dynamically created button sent the signal. Assuming I can get the tablewidget to ignore the mouse clicks on the pushbutton I should be able then link that button to the technology on/off function. Whew, sounds worse in writing than it really is.
Try out current git version 14.06.06-1. I'm skirting the line where I'm likely to be arrested for QTableWidget abuse.
Ohhh better watch it QT Police are going to get you! LOL...
YEAH this looks really nice now!
But I'm still noticing some goofy things going on with the buttons.
I guess I should of reported back you have this working... :)
Might as well close now... :)
Hi Andrew,
In Openbox I use this environment variable so that I can use GTK2 themes with QT5;
export QT_STYLE_OVERRIDE=gtk
WIth the QT theme under the Technologies you can click on the various names and they'll hightlight in blue and you can click and turn them on an off
I noticed when using export QT_STYLE_OVERRIDE=gtk and then picking a GTK2 theme to use I can't click on any section and get them to highlight or get them to turn on or off, nothing happens.
Using export QT_STYLE_OVERRIDE=gtk and using GTK2 themes is breaking functionality.