Jump to content
  • 0

StyleSheets in Modorganizer 2


Gernash

Question

I want to have a #color when a mod folder only contanis meta.ini and not loose files or folders

 

Anyone out there know QT Programming?

 

[spoiler=Code snippet from dracula.qss]

/*

QAbstractItemView modifications

*/

 

QAbstractItemView {
border: 1px solid #323232;
selection-color: #bbbbbb;
selection-background-color: #4b6eaf;
alternate-background-color: #414547;
show-decoration-selected: 1;
outline: 0;
}
QListWidgetItem,
QTreeWidgetItem {
background-color: red;
color: yellow;
border: 1px solid purple;
}
QAbstractItemView::text {
color: #bbbbbb;
}
QTreeView::branch:hover,
QAbstractItemView::item:hover {
background-color: rgba(255, 255, 255, 0.05);
}
QTreeView::branch:selected:active,
QAbstractItemView::item:selected {
background-color: #4b6eaf;
}

QTreeView::branch:has-siblings:adjoins-item,
QTreeView::branch:has-siblings:!adjoins-item,
QTreeView::branch:!has-children:!has-siblings:adjoins-item {
border-image: none;
}
QTreeView::branch:has-children:!has-siblings:closed,
QTreeView::branch:closed:has-children:has-siblings {
border-image: none;
image: url(:/stylesheet/branch-closed.png);
}
QTreeView::branch:open:has-children:!has-siblings,
QTreeView::branch:open:has-children:has-siblings {
border-image: none;
image: url(:/stylesheet/branch-open.png);

 

 

Link to comment
Share on other sites

Recommended Posts

  • 0

I'm not sure what you are after is possible with stylesheets alone. All the UI elements are defined in MO's code using Qt as the framework and there needs to be a specific element that the stylesheet hooks.

The highlighting that occurs when you select a mod to show any conflicts is defined in the programme code itself and then assigned a specific UI element for Qt to work with.

 

Aside from that I'm not sure what else I can offer. Making stylesheets is fairly easy though as you can have MO open and work on the stylesheet in an editor and the changes will show as you make them.

Link to comment
Share on other sites

  • 0

TanninOne

"I'm afraid you can't. The "mod contains no valid data"-state is not bound to a qt object state (not sure if that would even be possible or how to do it) so the look of that item (italics and dark gray font) is hard coded."

 

Can the default color of the Qt framework be changed?


https://doc-snapshots.qt.io/qt5-5.7/qtquickcontrols2-material.html#material-theme-attached-prop ???

Link to comment
Share on other sites

  • 0

OK started on the Style Sheet Never seen Qt before (well other than MO)

 

Here is a >>>direct link<<< to the in progress work (2am need sleep just uploaded in current state)

 

This will be the Pip-Boy themed ModOrganizer 2 for the wiki

 

that's  >>HERE<< if you didn't know

 

If anyone wants to help or has artistic suggestion as I do it, go hard.

Edited by Gernash
Link to comment
Share on other sites

  • 0

So apparently I know basic QT Styling now....

 

It's still in copy paste form Might Nexus when I get the graphics in.....

 

Working on importing graphics to it now......

 

Pit-Boy V1.0b Stylesheet ............

V1.01b (cosmetic/styling changes)

Edited by Gernash
Link to comment
Share on other sites

  • 0

OK, I spent more time playing with it....er Stylesheets. Now I'm up to the point of adding it to the Nexus.

I have sent emails etc to the people that I Used artwork from but they may never reply.....

 

Does anyone Know what I can do? Other then use picture of my cat.

 

Anyway this is Vau1t-101 Stylesheet V1.0.0 (No there is not download link didn't you read above?)

Edited by Gernash
Link to comment
Share on other sites

  • 0

That last edition looks... fantastic. The previous ones were just too bright and green for me, maybe the addition of the 101 did it?

What artwork are you referring to? If it is the 101 and the radioactive logos surely they are free to use by anyone?

I will definitely use this on my Fallout installs.

Link to comment
Share on other sites

  • 0

The 1st ones was me learning how the scripting language works (I said I never looked at it before).

The Vault 101 (Green Style) was applying that knowledge and delving a bit deeper.

 

Started on the next one....Evil Institute....


Oh the 101 comes from here https://birdie94jb.deviantart.com/

 

the other one is a moded version of https://drnebulon.deviantart.com/art/Vault-Tec-Desktop-436854714

Link to comment
Share on other sites

  • 0

I'm going to go out on limb here and say you are completely fine with using those images. Both are already using logos/iconography from the game so any cause for complaint will come from the developers, not those artists. However the use of artwork from the game has always been an acceptable use of those assets when used for game related work.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Guidelines, Privacy Policy, and Terms of Use.