Guna is an innovative theme for Sublime Text that offers a variety of features to enhance your coding experience. It includes prominent widgets such as a clock, weather updates, and date display on the sidebar. The theme colors are customizable, either manually or adaptively, allowing you to tweak them to your preference. Additionally, Guna supports font switching and provides an API to control the status bar label.
To activate Guna, open the command palette by pressing Cmd
/Ctrl
+ Shift
+ P
, then type and select "Guna." If another color scheme has been selected in adaptive mode, it will revert to Guna's original color scheme. For an optimal view, it's recommended to navigate to View
> Side Bar
and select Hide Open Files
. Upon removal of Guna, the theme and color scheme will automatically restore to their previous settings before Guna was activated.
By default, Guna uses Dejavu Sans for the user interface and Roboto Condensed specifically for the status bar. However, you can change these fonts in the theme-tweak settings according to your preferences. In the provided screenshots, the editor font used is Menlo, specifically the Meslo variant.
Clock / Date : The clock's color indicates the status of the active view:
: Normal state
: Dirty or scratch state
: Read-only state
: Alert state (only controlled by API)
Weather : Introduced in version 1.4.0, the weather widget utilizes data from Open Weather Map. To access this feature, obtain your own AppID from Open Weather Map and configure the weather settings in Guna.sublime-settings. The widget displays the current weather (1st icon) and forecasts for the next 3 and 6 hours (the 2nd, 3rd icon), updating every 30 minutes.
โน Widgets can be viewed on other themes
Guna automatically adjusts its theme colors to match the selected color scheme by aligning the background color. This allows seamless integration with various color schemes like Monokai, Mariana, Ayu, and others. For easy customization of theme colors and fonts, navigate to Preferences
> Package Settings
> Guna
> Dark (Light) theme settings
.
Adaptive Theme Testing Shot
Guna provides syntax color schemes for multiple programming languages, including Python, Java, C++, Systemverilog, Html, Markdown, Yaml, and more.
Guna offers APIs to control its interface, such as functions to display alert situations. For example, typing raise
in the Sublime console can demonstrate status bar label alerts. For more details, refer to Guna's API documentation.
Guna supports HiDPI with UI scaling. You can adjust the sizes of buttons, file icons, tabs, widgets, and switch panel icons in the theme settings.
{
"scale": 1.5, // control sizes of buttons, file icons, tab ...
"widget_scale": 1.33, // control sizes of clock, weather widget ...
"switch_icon_scale": 1, // control the size of switch panel icon
}
While Guna doesn't include its own file type icons (except for Verilog/SystemVerilog), it is compatible with icon packages like A File Icon, which is recommended for use with Guna.
If you find Guna helpful and would like to support its continued development, consider making a donation. Your contributions are appreciated and assist in the ongoing improvement of the plugin.
- Icons designed by Freepik, Dave Gandy, Madebyoliver, Gregor Cresnar, Smartline, Vectors Market, Monkik, Linector from www.flaticon.com is licensed by CC 3.0 BY
Guna is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.