Options

Operator color

StaryVenaStaryVena Member Posts: 126 Contributor II
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

  • Options
    fischerfischer Member Posts: 439 Maven
    Hi,

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

    Best,
    Simon
  • Options
    StaryVenaStaryVena Member Posts: 126 Contributor II
    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?
  • Options
    pablucu5pablucu5 Member Posts: 15 Contributor II
    -----------------------------------------------------
    # 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.
  • Options
    StaryVenaStaryVena Member Posts: 126 Contributor II
    Thanks, I will try it, but I think, it won't help, becase in Core xml is it same as in my post.
  • Options
    StaryVenaStaryVena Member Posts: 126 Contributor II
    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.
  • Options
    pablucu5pablucu5 Member Posts: 15 Contributor II
    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?
  • Options
    landland RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 2,531 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
  • Options
    pablucu5pablucu5 Member Posts: 15 Contributor II
    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
  • Options
    IngoRMIngoRM Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, Community Manager, RMResearcher, Member, University Professor Posts: 1,751 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
  • Options
    fischerfischer Member Posts: 439 Maven
    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.