Giter Site home page Giter Site logo

hjeffrey / changemenubarcolor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from igorkulman/changemenubarcolor

1.0 0.0 1.0 1.44 MB

Simple utility to change macOS Big Sur menu bar color by appending a solid color or gradient rectangle to a wallpaper image

License: MIT License

Swift 100.00%

changemenubarcolor's Introduction

Change menu bar color in macOS Big Sur

License: MIT Platforms Swift Version Twitter: @igorkulman Buy Me A Coffee

Simple utility to change macOS Big Sur menu bar color by appending a solid color or gradient rectangle to a wallpaper image.

Motivation

Big Sur changed the way the menu bar is displayed. It now adopts the color of the wallpaper, which may not always be what you would like. This utility allows you to specify the solid color or gradient of the menu bar you want to use.

Example

Imagine you have a dark wallpaper. This dark wallpaper results in the menu bar being black even though you use the Light mode

Default menu bar color in macOS Big Sur

With this utility you can generate a new wallpaper that makes the menu bar being shown in any color you want, like a nice tone of gray from Catalina.

Custom color menu bar in macOS Big Sur

Or a custom gradient

Gradient menu bar in macOS Big Sur

Installation

Binary release

Download the latest published release and unzip the ChangeMenuBarColor.zip file. It will create a ChangeMenuBarColor executable file that you can use.

Swift Package Manager

Clone the repository

git clone https://github.com/igorkulman/ChangeMenuBarColor.git

enter it

cd ChangeMenuBarColor

and run

swift build -c release

to create a ChangeMenuBarColor executable file in .build/release.

Usage

Solid color

To set a new wallpaper file with a solid color rectangle that matches the menu bar, run

./ChangeMenuBarColor SolidColor "desired_hex_color" "optional_path_to_your_wallpaper" 

So for example

./ChangeMenuBarColor SolidColor "#CCCCCC" "/Users/igorkulman/wallpaper.jpg"

If you do not provide the wallpaper path

./ChangeMenuBarColor SolidColor "#CCCCCC"

the currently set wallpaper will be used.

Gradient

To set a new wallpaper file with a gradient rectangle at the top, run

./ChangeMenuBarColor Gradient "start_hex_color" "end_hex_color" "optional_path_to_your_wallpaper"

So for example

./ChangeMenuBarColor Gradient "#FF0000" "#00FF00" "/Users/igorkulman/wallpaper.jpg"

If you do not provide the wallpaper path

./ChangeMenuBarColor Gradient "#FF0000" "#00FF00"

the currently set wallpaper will be used.

Known issues

Dynamic wallpapers are not supported at the moment. If you use a dynamic wallpaper the utility will not be able to use it and will fail.

Support the project

Buy Me A Coffee

Contributing

All contributions are welcomed!

Development

Use swift package generate-xcodeproj to generate a Xcode project you can use for development.

Author

License

This project is licensed under the MIT License - see the LICENSE file for details.

changemenubarcolor's People

Contributors

igorkulman avatar hjeffrey avatar trliner avatar graymattrr avatar

Stargazers

Daniel Ceballos avatar

Forkers

dannyceb

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.