question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[themes] Themes don't support background styling

See original GitHub issue

.tmTheme files allow specification of background colors which don’t seem to be supported, for example:

<dict>
  <key>name</key>
  <string>Separator</string>
  <key>scope</key>
  <string>meta.separator</string>
  <key>settings</key>
  <dict>
    <key>background</key>
    <string>#E0E0E0</string>
    <key>foreground</key>
    <string>#373B41</string>
  </dict>
</dict>

This is especially problematic for themes that attempt to invert background and use a similar foreground to the text view’s background color (https://github.com/Microsoft/vscode/issues/2158)

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:436
  • Comments:111 (24 by maintainers)

github_iconTop GitHub Comments

92reactions
aeschlicommented, Mar 4, 2016

We had it in, but turned it off as it conflicted badly with the other background decorations we have (selection, word highlighting). I’d say we accept this as limitation and tell to better use themes that don’t rely on background colors.

60reactions
Tyriarcommented, Mar 4, 2016

It’s such a handy feature of tmThemes though to draw attention to important things. it’s used frequently across themes for invalid and deprecated scopes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Styles and Themes - Android Developers
Styles and themes on Android allow you to separate the details of your app design from the UI structure and behavior, similar to...
Read more >
Backgrounds Styling (Theme Options > Main Content > Layout ...
We are going to describe about Backgrounds Styling options available under Main Content > Layout & Backgrounds section of Theme Options in ...
Read more >
Customize Your Site's Background – WordPress.com Support
If you don't see Colors & Backgrounds under Customize, your theme does not support changing the colors and backgrounds.
Read more >
Apply a professional look to your drawings with themes
To remove the theme from selected shapes, on the Home tab, in the Shape Styles group, click Remove Theme. Some themes also contain...
Read more >
Setting Android Theme background color - Stack Overflow
Because the styles in the values/styles.xml file are available for all versions, your themes in values-v21/styles.xml can inherit them.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found