Community Forums Today's Posts     Member List     Archive    
Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2011
    Posts
    4

    question about .qss code

    My first time designing a theme, wanted to know if it possible to have 2 images in the top position of the theme. I have one image which is the background of the whole theme, which is only 5 pixels in height and set to repeat, i also have another image with a transparent background that i would like to put in the top right of the theme. I have tried adding both lines of code into the .qss but it only uses one. Is this possible to do?

    Here is what i currently have thats not working

    QMainWindow {
    background-image: url('Styles/ArmoredFist/Images/back-bg.png');
    background-position: top right;
    background-repeat:repeat-y;
    background-attachment:fixed;
    background-color: #000000;
    color: #ffffff;
    }
    background-image: url('Styles/ArmoredFist/Images/top.png');
    background-position: top right;
    background-repeat:repeat-x;
    background-attachment:fixed;
    background-color: #000000;
    color: #ffffff;

    Thanks in advance for anyhelp

  2. #2
    Join Date
    Dec 2009
    Location
    Netherlands
    Posts
    128
    Try and use the following (You probably need to adjust it a bit, but here you go). The image doesn't repeat however, so you just need to put this image together yourself and make it something like 1920pxs wide.

    Code:
    QMainWindow {
      background-image: url('Styles/ArmoredFist/Images/back-bg.png');
      background-position: top right;
      background-repeat: repeat-y;
      background-color: black;
      image: url'(Styles/ArmoredFirst/Images/top.png');
      image-position: top right;
      color: #ffffff;
    }

  3. #3
    Join Date
    Oct 2011
    Posts
    4
    Thanks for the reply, that unfortunately just makes the whole background black and looses the original background image and the other image doesnt show up at all

  4. #4
    Join Date
    Dec 2009
    Location
    Netherlands
    Posts
    128
    Code:
    QMainWindow {
      background-image: url('Styles/ArmoredFist/Images/back-bg.png');
      background-position: top right;
      background-repeat: repeat-y;
      background-color: black;
      image: url('Styles/ArmoredFist/Images/top.png');
      image-position: top right;
      color: #ffffff;
    }
    try that instead, I misplace an apostrophe, causing the entire skin to mess up. It should work like that, anyway, you can try messing around yourself a bit also, at least you know that you can use the Image property to use another image.
    edit: another typo in the code

  5. #5
    Join Date
    Oct 2011
    Posts
    4
    I ended up photoshopping it all together, looks fine now, but now my issue is when we use channel commander and whisper to each other, the box thats popping up has bad ghosting on it, and i cant find that section in the .qss file, any suggestions?

  6. #6
    Join Date
    Dec 2009
    Location
    Netherlands
    Posts
    128
    Turning of the box

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Question about class/code GPL V3 License
    By Chloe in forum General Questions
    Replies: 3
    Last Post: 19-06-2011, 18:00
  2. BB Code
    By rebz01 in forum General Questions
    Replies: 2
    Last Post: 17-11-2010, 02:02
  3. [Bug] BB-Code
    By x!sign.dll in forum General Questions
    Replies: 4
    Last Post: 25-12-2009, 19:53
  4. IFRAME code question
    By karimali831 in forum Suggestions and Feedback
    Replies: 2
    Last Post: 22-12-2009, 02:11

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •