title: Changing default color of text
body: <p>In order to change the default color of all text in my app to black, I tried setting the <a href="https://kivy.org/docs/api-kivy.uix.label.html#kivy.uix.label.Label.color" rel="nofollow noreferrer"><code>color</code></a> property inside <code>&lt;Label&gt;</code> to <code>0,0,0,1</code>.</p>
  
  <blockquote>
    <p>color: </p>
    
    <p>Text color, in the format (r, g, b, a).<br>
    color is a ListProperty and defaults to [1, 1, 1, 1].</p>
  </blockquote>
  
  <p>This however makes the text black regardless of any markup color used. For example the code at the bottom of the post creates 3 buttons with black text when <code>color: 0,0,0,1</code>: </p>
  
  <p><a href="https://i.stack.imgur.com/eZDgF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eZDgF.png" alt="enter image description here"></a></p>
  
  <p>and the expected white, red, green text color when <code>color: 1,1,1,1</code>:</p>
  
  <p><a href="https://i.stack.imgur.com/4UFPW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4UFPW.png" alt="enter image description here"></a></p>
  
  <p>I am assuming that <code>color</code> is applied after the markup coloring, causing the problem described above. </p>
  
  <p><strong>Question:</strong><br>
  What is the correct way to change the default color of text?</p>
  
  <p>Kivy version: 1.9.0</p>
  
  <hr>
  
  <pre><code>from kivy.app import App
  from kivy.uix.boxlayout import BoxLayout
  from kivy.lang import Builder
  
  
  kv = """
  
  
  
  &lt;Label&gt;:
      markup: True
      color: 0,0,0,1  # This defaults to 1,1,1,1 when not used
  
  &lt;MyWidget&gt;:
      orientation: 'vertical'    
      Button:
          text: 'No markup text'
      Button:
          text: '[color=FF0000]Red markup[/color]'
      Button:
          text: '[color=7FFF00]Green markup[/color]'
  """    
  
  Builder.load_string(kv)    
  
  class MyWidget(BoxLayout):
      pass
  
  class MyButtonsApp(App):
      def build(self):
          return MyWidget()    
  
  if __name__ == '__main__':
      MyButtonsApp().run()
  </code></pre>