Giter VIP home page Giter VIP logo

Comments (4)

HazelNutHoney avatar HazelNutHoney commented on May 27, 2024

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.

HazelNutHoney avatar HazelNutHoney commented on May 27, 2024

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.

HazelNutHoney avatar HazelNutHoney commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.