RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Theme Question - Variables (Color variable based on System)

    Scheduled Pinned Locked Moved Ideas and Development
    themeingvariables
    2 Posts 2 Posters 144 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      NewYears1978
      last edited by NewYears1978

      Hey all, new to Emulation Station and theming and all this.

      Learning a little about variables. I have some images that I color with colors in the theme. I would like to have those colors change based on the system.

      How would I set up variables by system for colors that can then be called with one variable?

      Basically just assume I have an image called that is a straight line and shows on my system view. I want to color it with the color variable that says, hey this is SNES so use the SNES color.

      Thanks in advance.

      Edit:
      I should add that I know how to make a variable such as <snescolor>ffffff</snescolor> and then apply that with snescolor, but I would still have to create a little repeated code batch for every system like that.

      Didn't know if there was a way to use an ifsubset type command kind of how you say ifsubset="system" but for specific systems or some other way.

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        Maybe 'nested' variables would work ? See https://github.com/RetroPie/EmulationStation/pull/703

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

        Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.