Supermium 124 Customization Features - Colours and Tab Shapes (Patreon)
Content
In the latest release of Supermium, there is some "hidden" functionality - customization of colours and tab shapes.
Chromium is removing many parts of the old user interface code with versions 125 and 126. We are taking the opportunity to extend these new implementations with fully customizable equivalents, allowing us to easily define many different colour schemes and tab layouts without having to maintain code for each possible one.
For that purpose, a new utility named Supermium Central Station is being developed. It's still being built, but for now, here are some of the important details.
The new Supermium customization file is called "scs" and it should be placed in the root of the user data directory.
At this time, custom colours can be defined using the following format:
``colour{x=r,g,b}{x=r,g,b}...endcolour``
Each 'x' value represents the index of a user interface element. There are more than 1500 such colour values, and part of the development process for Supermium Central Station will include disclosing and grouping together "major" elements.
Another function that is currently available is the ability to set custom tab shapes. The format is as follows:
``tab{0=0.0,23.0,0.0,10.0,0.0,8.0}{1=0.0,23.0,0.0,10.0,0.0,8.0}...endtab``
Each bracketed entry represents a "cubic". The integer to the left of the equal sign represents the number of the entry, while the six floating point values are as follows:
-the starting x value for the cubic
-the starting y value for the cubic
-the midpoint x value for the cubic
-the midpoint y value for the cubic
-the ending x value for the cubic
-the ending y value for the cubic
In essence, each "cubic" can easily represent a straight or curved line.
The coordinate system places (0,0) at the top-left of the tab. The maximum y-value is represented by the height of the tab, generally 23 px for a compact tab or 34 px for a standard tab. The maximum x-value is represented by the width of the tab, generally up to 193 px for a compact tab or 240 px for a standard tab, plus tab overlap and minus the width of one tab separator.
It is also possible to have special customization rules for specific categories of tabs which can override the generic tab shape:
-first tabs (firsttab...endfirsttab)
-inactive tabs (inactivetab...endinactivetab)
-active tabs (activetab...endactivetab)
-pinned tabs (pinnedtab...endpinnedtab)
Various types of presets will be available through Supermium Central Station to quickly enable various historical Chromium tab shapes. This should alleviate user requests and complaints regarding the current options.
Future plans will add customization options for:
-tab widths/heights/separators
-new tab button
-user agent/UACH spoofing (this will be free as part of the LSC commitment to privacy)
And possibly being considered:
-web script execution (to be evaluated)