Sublime Forum

Python bindings for a theme API

#1

I was looking into creating a plugin for the Appbar package (https://github.com/equinusocio/material-theme-appbar) to blend the bar’s colors after some time, but I couldn’t find a way to modify the current theme from a Python script.

One solution would be to parse and save the .sublime-theme file, but that feels like an awful lot of unnecessary IO for such a feature.
The forum search only brought up the question about getting the active theme, but that would then still require IO for updating the theme itself.

Is there any way I can modify the currently loaded theme without “manually” changing and saving files?

0 Likes

#2

There is currently no way of doing that. The python API does not support that

0 Likes