Gernash Posted August 10, 2016 Share Posted August 10, 2016 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 More sharing options...
0 GrantSP Posted August 10, 2016 Share Posted August 10, 2016 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 More sharing options...
0 Gernash Posted August 10, 2016 Author Share Posted August 10, 2016 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 More sharing options...
0 Gernash Posted August 10, 2016 Author Share Posted August 10, 2016 Sorry been reading all about Qt... sent request to Qt forums. On a Note note not FO4 related atm..... https://www.nexusmods.com/skyrim/mods/73817/?tab=2&navtag=http%3A%2F%2Fwww.nexusmods.com%2Fskyrim%2Fajax%2Fmodfiles%2F%3Fid%3D73817&pUp=1 This guyI feel a FO4 theamed MO2 interface comming on..... Link to comment Share on other sites More sharing options...
0 Gernash Posted August 10, 2016 Author Share Posted August 10, 2016 Arrrrg I did not realize I could name the Dividing file -----------------------------------------------------Core Files-------------------------------------------- still perusing color change Link to comment Share on other sites More sharing options...
0 Gernash Posted August 10, 2016 Author Share Posted August 10, 2016 (edited) 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 August 21, 2016 by Gernash Link to comment Share on other sites More sharing options...
0 Gernash Posted August 11, 2016 Author Share Posted August 11, 2016 (edited) 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 August 21, 2016 by Gernash Link to comment Share on other sites More sharing options...
0 Gernash Posted August 12, 2016 Author Share Posted August 12, 2016 (edited) Pit-Boy V1.1.0b #WIP Stylesheet (Updated)Just extract in your MO2 Stylesheet and Feel the GREEN!!! Just extract the 7z in your Stylesheet folder in ModOrganizer. It's in the 1st Post. https://forum.step-project.com/topic/11094-wip-fallout-4-using-modorganizer-2/?p=176398 Edited August 21, 2016 by Gernash Link to comment Share on other sites More sharing options...
0 Gernash Posted August 13, 2016 Author Share Posted August 13, 2016 (edited) 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 August 21, 2016 by Gernash Link to comment Share on other sites More sharing options...
0 GrantSP Posted August 13, 2016 Share Posted August 13, 2016 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 More sharing options...
0 Gernash Posted August 13, 2016 Author Share Posted August 13, 2016 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 More sharing options...
0 GrantSP Posted August 14, 2016 Share Posted August 14, 2016 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 More sharing options...
0 Gernash Posted August 14, 2016 Author Share Posted August 14, 2016 (edited) Going by this randumb guys magic pic of flowcharty goodness I'll say yes....Hope I don't get banned...... Edited August 21, 2016 by Gernash Link to comment Share on other sites More sharing options...
0 Gernash Posted August 14, 2016 Author Share Posted August 14, 2016 Yeay.... I is a PUBWISHER (I'm Australian) https://www.nexusmods.com/fallout4/mods/17375? Link to comment Share on other sites More sharing options...
0 Gernash Posted August 17, 2016 Author Share Posted August 17, 2016 (edited) Opinions?Anything you'd like to see? Edited August 21, 2016 by Gernash Link to comment Share on other sites More sharing options...
0 GrantSP Posted August 17, 2016 Share Posted August 17, 2016 I think the red is too jarring a colour, it clashes with the more subtle greens of the rest of the UI. A vibrant yellow would still serve as a highlight but not be overly distracting. IMHO. Link to comment Share on other sites More sharing options...
Question
Gernash
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
18 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now