title: How to create an own type for a setting in Kivy?
body: <p>I'd like to extend a Kivy settings panel to pick a color for some lines / backgrounds etc. for my app.</p>
  
  <p>I've added a new type for a ColorPicker to a Kivy settings panel and it is almost working. But I have the problem that the value of the currently picked color is not displayed in the settings panel. (missing text see red circle in below screenshot)</p>
  
  <p><img src="https://i.stack.imgur.com/nAUbK.gif" alt="value text missing"></p>
  
  <p>I think it's a simple problem but I haven't found a fix yet. My Class has the name SettingColorPicker (base class SettingItem) and if I rename it to SettingString and remove the original SettingString class than it works as expected. I don't know why?!</p>
  
  <p>I registered the new type like this:</p>
  
  <pre><code>   s = Settings()
     s.register_type('colorpicker', SettingColorPicker)
  </code></pre>
  
  <p>The rest of my code is pretty simillar to Class SettingPath code. I've only created a color picker instead of the FileChooser.</p>
  
  <p>Where does the label at this position gets it's value? I haven't found it in the source code <a href="https://github.com/kivy/kivy/blob/master/kivy/uix/settings.py" rel="nofollow noreferrer">https://github.com/kivy/kivy/blob/master/kivy/uix/settings.py</a></p>
  
  <p>I'd also like to change the color of the text in that label to the currently selected color. How can I do this? But that's probably easy if I unterstand where the label is created.</p>
  
  <p>And here is how it looks like if I click on the text 'BG color' (it's the ColorPicker that's included in Kivy):
  <img src="https://i.stack.imgur.com/uxLPK.gif" alt="ColorPicker in action"></p>
  
  <p>You can find the source code here:
  <a href="https://gist.github.com/AWolf81/421976e65099d3e58a32" rel="nofollow noreferrer">https://gist.github.com/AWolf81/421976e65099d3e58a32</a></p>
  
  <p>You can run it directly to see the described problem.</p>