Git Product home page Git Product logo

Comments (4)

parkeraddison avatar parkeraddison commented on July 2, 2024 2

Hey I felt this was lacking too, since I rely on the color to help me quickly tell if my mic is hot. Fortunately you can edit the extension code locally to achieve this. Here are the steps:

  1. Find the extension source code, for me this was at "~/.config/raycast/extensions/c9ece8c4-784f-48e9-8a7a-7b67ffae12e8/mute-menu-bar.js"

    find ~/.config/raycast/extensions/ -name "mute-menu-bar.js"
  2. Open the file, find the span of code responsible for the icons, and change it to use your desired tintColor:

    - c=u==0?r.Icon.MicrophoneDisabled:r.Icon.Microphone
    + c=u==0?{source:r.Icon.MicrophoneDisabled, tintColor:r.Color.Red}:{source:r.Icon.Microphone, tintColor:r.Color.Green}

    Then save the file! It'll use the new value the next time you toggle the mute.

You can use any colors as explained in the Raycast Colors docs: https://developers.raycast.com/api-reference/user-interface/colors#color. I figured out how to do this through the Raycast Icons & Images docs: https://developers.raycast.com/api-reference/user-interface/icons-and-images#properties

Going beyond

Ideally we can use command preferences to allow users to choose their desired colors for the enabled and disabled icons, without needing to dive into the source code.

Some docs to make this happen:

from extensions.

raycastbot avatar raycastbot commented on July 2, 2024

Thank you for opening this issue!

๐Ÿ”” @quentin23soleil @danulqua @iamyeizi you might want to have a look.

๐Ÿ’ก Author and Contributors commands

The author and contributors of Quentin23Soleil/mute-microphone can trigger bot actions by commenting:

  • @raycastbot close this issue Closes the issue.
  • @raycastbot rename this issue to "Awesome new title" Renames the issue.
  • @raycastbot reopen this issue Reopen the issue.

from extensions.

iamyeizi avatar iamyeizi commented on July 2, 2024

@parkeraddison thank you so much!

from extensions.

iamyeizi avatar iamyeizi commented on July 2, 2024

@raycastbot close this issue

from extensions.

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.