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.

Add support for updating itemBackgroundColor

See original GitHub issue

Am i right that we can update the titlebar background color using

titlebar.updateBackground(new Color(new RGBA(0, 0, 0, .7)));

but not the somehow related itemBackgroundColor?

Background:

I am using custom-electron-titlbar in an electron application which offers support for themes. While switching themes i do as well adjust the background color of the titlebar. This is great - but the changing itemBackgroundColor as well would be perfect to match the style as good as possible.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
yafpcommented, Feb 6, 2020

Just to show the result

custom-electron-titlebar

Thanks once again

1reaction
yafpcommented, Feb 4, 2020

@AlexTorresSk just for your information.

The command updateItemBGColor does in fact work if i am running 3.2.2-hotfix62, while it doesn’t with 3.2.2

What might cause issue for some currently messing around with your package is the following. Running npm-check -s tells me the following

custom-electron-titlebar   😍  UPDATE!   Your local install is out of date. https://github.com/AlexTorresSk/custom-electron-titlebar#readme
                                        npm install --save custom-electron-titlebar@3.2.2 to go from 3.2.2-hotfix62 to 3.2.2

So it might look for some developers that 3.2.2 is > 3.2.2-hotfix62.

Not a big issue - i just stumbled upon it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changing background color of selected item in recyclerview
First we will need to get our item background color as a ColorDrawable. We will use an iterator function to go through all...
Read more >
How to Add & Change Background Color in HTML
First, find the div in your HTML code and add a class to the opening tag. Adding a class to an element will...
Read more >
background-color - CSS: Cascading Style Sheets | MDN
The background-color CSS property sets the background color of an element.
Read more >
How do I update the background color or image? V6
How do I update the background color or image? V6 · Navigate to your prototype and click one of your screens. · In...
Read more >
HTML DOM Style backgroundColor Property - W3Schools
The backgroundColor property sets or returns the background color of an element. See Also: HTML Styles: The background Property. CSS Tutorial: CSS Backgrounds....
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