Flex GUI Stylesheet Builder

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
23 Dec 2024 14:14 #317198 by JT
Flex GUI Stylesheet Builder was created by JT
If you don't understand how to build a QSS stylesheet then Flex has the solution for you a stylesheet builder.



JT
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
26 Dec 2024 14:08 - 26 Dec 2024 14:40 #317403 by JT
Replied by JT on topic Flex GUI Stylesheet Builder
The stylesheet builder now has QPushButton, QCheckBox, QRadioButton and QLabel.



JT
Attachments:
Last edit: 26 Dec 2024 14:40 by JT.

Please Log in or Create an account to join the conversation.

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
10 Jan 2025 14:53 #318635 by JT
Replied by JT on topic Flex GUI Stylesheet Builder
Messing around with QLinearGradients and thinking of adding them to the Stylesheet Builder.



Is it worth it?

JT
Attachments:

Please Log in or Create an account to join the conversation.

  • blazini36
  • Away
  • Platinum Member
  • Platinum Member
More
12 Jan 2025 02:17 #318729 by blazini36
Replied by blazini36 on topic Flex GUI Stylesheet Builder

Messing around with QLinearGradients and thinking of adding them to the Stylesheet Builder.



Is it worth it?

JT
 

A gradient would be good for something like a progressbar unless there's some other way to express zones.

Was messing with the qss builder a bit.....it definately needs an "open" function.

Also doesn't seem to be any way to apply the background colors. I assumed this would be part of "All" but it doesn't seem to work like that.

 

Please Log in or Create an account to join the conversation.

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
12 Jan 2025 10:35 #318749 by JT
Replied by JT on topic Flex GUI Stylesheet Builder

A gradient would be good for something like a progressbar unless there's some other way to express zones.

Was messing with the qss builder a bit.....it definately needs an "open" function.

Also doesn't seem to be any way to apply the background colors. I assumed this would be part of "All" but it doesn't seem to work like that.

 

Gradients can be used to style buttons etc.

What would the open function do?

Can you elaborate on apply the background colors?

JT

Please Log in or Create an account to join the conversation.

  • blazini36
  • Away
  • Platinum Member
  • Platinum Member
More
12 Jan 2025 11:03 #318753 by blazini36
Replied by blazini36 on topic Flex GUI Stylesheet Builder
"What would the open function do?"

If you use flexqss to make a qss file then close it, your done. You can't edit it after the fact without some File->open type function. There's an awful lot of different selections to make having to make them in 1 sitting.

"Can you elaborate on apply the background colors?"
How do you change the background color without using a theme in the ini? If you specify a qss, the theme doesn't work.....or at least that's what I'm seeing. From my setup, it's either use a flex theme or the background is white.....and my qt theme is dark on my Debian VM. Designer preview shows my ui as dark, launching LinuxCNC with a qss specified it is white....so maybe I'm missing something.

Please Log in or Create an account to join the conversation.

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
12 Jan 2025 15:49 #318786 by JT
Replied by JT on topic Flex GUI Stylesheet Builder

"What would the open function do?"

If you use flexqss to make a qss file then close it, your done. You can't edit it after the fact without some File->open type function. There's an awful lot of different selections to make having to make them in 1 sitting.

"Can you elaborate on apply the background colors?"
How do you change the background color without using a theme in the ini? If you specify a qss, the theme doesn't work.....or at least that's what I'm seeing. From my setup, it's either use a flex theme or the background is white.....and my qt theme is dark on my Debian VM. Designer preview shows my ui as dark, launching LinuxCNC with a qss specified it is white....so maybe I'm missing something.
 

I can see the usefulness of being able to open a qss file and set the various widget stylesheet properties.

Yes it is either use a theme or create your own qss stylesheet and use that.

As for the main window background color I need to add that but in the mean time...
/***** QMainWindow *****/
QMainWindow {
    color: #ffffff;
    background-color: #121212;
}

JT

Please Log in or Create an account to join the conversation.

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
14 Jan 2025 15:14 #318950 by JT
Replied by JT on topic Flex GUI Stylesheet Builder
I started adding containers and a gui you can pop up to view all the changes in one place.

JT

Please Log in or Create an account to join the conversation.

Time to create page: 0.184 seconds
Powered by Kunena Forum