Operator color

StaryVenaStaryVena Member Posts: 126  Maven
edited November 2018 in Help
Hi,
where can I change color of my operator from default white? I didn't find it in xml even API doc.

image
Tagged:

Answers

  • fischerfischer Member Posts: 439  Guru
    Hi,

    for the core, that is in groups.properties. You can have such a file per extension.

    Best,
    Simon
  • StaryVenaStaryVena Member Posts: 126  Maven
    Thank You.
    But i have problem.  I changed groupsTutorial.properties in tutorial project. Now it looks like this:

    # gray
    group.Tutorial.color          = #e9e9e9
    # root color (empty)
    group..color                  = #b2a2e9

    group.loop.color              = #fde4d7
    OperatorsTutorial.xml is:

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <operators name="tutorial" version="5.0" docbundle="com/rapidminer/resources/i18n/OperatorsDocTutorial">
      <group key="">
          <group key="tutorial">
            <group key="data_transformation">
                <group key="type_conversion">
                  <operator>
                      <key>numerical_to_date</key>
                      <class>com.rapidminer.operator.preprocessing.transformation.Numerical2DateOperator
                      </class>
                  </operator>
                </group>
            </group>
            <group key="process_control">
                <group key="loop">
                  <operator>
                      <key>loop_infinitely</key>
                      <class>com.rapidminer.operator.meta.LoopInfinitely</class>
                  </operator>
                </group>
            </group>
            <operator>
                <key>process_game_data</key>
                <class>com.rapidminer.operator.game.ProcessGameDataOperator</class>
            </operator>
            <operator>
                <key>extract_age</key>
                <class>com.rapidminer.operator.game.extractors.ExtractAgeOperator</class>
            </operator>
          </group>
      </group>
    </operators>
    All operators are still white.  Is there a way to find, where problem is?
  • pablucu5pablucu5 Member Posts: 15  Maven
    -----------------------------------------------------
    # gray
    group.Tutorial.color          = #e9e9e9
    -----------------------------------------------------

    -----------------------------------------------------
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <operators name="tutorial" version="5.0" docbundle="com/rapidminer/resources/i18n/OperatorsDocTutorial">
       <group key="">
          <group key="tutorial">

              ...

          </group>
       </group>
    </operators>
    -----------------------------------------------------

    Try with the upper/lower case.
  • StaryVenaStaryVena Member Posts: 126  Maven
    Thanks, I will try it, but I think, it won't help, becase in Core xml is it same as in my post.
  • StaryVenaStaryVena Member Posts: 126  Maven
    I've got it. One problem was lower/upper case and secod one was subgups If you have data_transformation -> type_conversion then in groups.properties should be
     group.data_transformation.type_conversion.color   = #2290F0
    Thanks everybody to help me.
  • pablucu5pablucu5 Member Posts: 15  Maven
    There are some colors that when they're assigned to the operators then RM5 GUI-Process-View doesn't work in the right way (like #FFF000).

    How can I solve this?
  • landland RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 2,525   Unicorn
    Hi,
    this is a good question. What do you mean by "doesn't work the right way"? This description is a little bit vague to draw conclusions on the possible reasons...

    Greetings,
      Sebastian
  • pablucu5pablucu5 Member Posts: 15  Maven
    I've created an operator that works fine, I can use it like other operators in the Perspective View -  Process Tab, I can move, drag or drop it or another action without any problem.

    When I try to change the color of my own operator to another color then something wrong happens sometimes because It seems that some colors are not allowed or they cause an error.

    When I try to assign color #e9e9e9 or #555555 I can see my operator with the right color and everything works fine. When I try to assign color #FFF000 then I can NOT see my operator in the right way. It has no name, in/out ports or black border, there is only a #FFF000 (yellow) square.

    I have written in the groupsTemplate.properties file this line:
    group.MyGroup.color = #FFF000
  • IngoRMIngoRM Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, Community Manager, RMResearcher, Member, University Professor Posts: 1,645  RM Founder
    Hi,

    most of our developers (including Sebastian and Simon who are more active here in the forum) are currently out of office but I am sure they will come back to you after their return.

    Cheers,
    Ingo
  • fischerfischer Member Posts: 439  Guru
    Hi,

    silly bug, sorry. Wait until tomorrow for the mirror or make sure all color components are at least 25 (decimal).

    Best,
    Simon
Sign In or Register to comment.