Comments (4)
When I comment out the focus function onWindowFocus(focus) { if (this.titlebar) { if (focus) { (0, _get__("dom_1").removeClass)(this.titlebar, 'inactive'); this.onFocus(); } else { (0, _get__("dom_1").addClass)(this.titlebar, 'inactive'); this.menuBar?.blur(); this.onBlur(); } } }
in titlebar/index.js it will stop custom-electron-titlebar from changing the color on focus and on blur. Wondering if you could possibly readd the option in the options? @AlexTorresDev
from custom-electron-titlebar.
I have wrote code for anyone who wants to fix this before this possibly gets fixed if you want to fix it replace your 'index.js' and 'options.d.ts' both of which are in the 'titlebar' folder located at 'node_modules/custom-electron-titlebar/titlebar' remove the .txt after these files if you use them
index.js.txt
options.d.ts.txt
from custom-electron-titlebar.
I accidently left in a test command line 337 console.log("TEST", this.currentOptions.titlebarColorBlur)
it is not needed so you can delete it for anybody who uses it file is index.js
from custom-electron-titlebar.
Related Issues (20)
- [Feature Request] Option to hide elements
- Error setting background color HOT 1
- [Windows] Hovering menu two options are highlighted HOT 5
- Cannot hide menu or change menu HOT 2
- Problem that two menus are not displayed. HOT 2
- Link to titlebar documentation is dead HOT 2
- The icon option crashes the toolbar
- Window Maximization button not change when window is maximized
- When I mouse-click the titlebar, the window does not get focus
- ERR_PACKAGE_PATH_NOT_EXPORTED on build
- Not sure how to add menu items HOT 1
- [Bug] Linux titlebar is broken? HOT 1
- Use getMenu instead of getApplicationMenu
- updateMenu should be public HOT 1
- OS detection fails in packaged/production builds, causing `undefined` instead of menu icons
- Impossible to update the menu HOT 1
- Title moves to the left after resizing HOT 5
- The submenus are not aligned with the title menu HOT 2
- [New Feature] Customize the title bar right-click menu and right-click events
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from custom-electron-titlebar.