euporie.core.style
Style related functions.
Functions
|
Generate base application styles. |
|
Generate buffer and editor styles. |
|
Create an application style based on the given color palette. |
|
Simple lightweight unbounded cache. |
|
Generate notebook cell styles. |
|
Generate chrome and UI element styles. |
Generate completion menu styles. |
|
|
Generate dataframe display styles. |
Create a default Style object. |
|
|
Generate dialog styles. |
|
Get Pygments style, caching the result. |
|
|
|
Generate input widget styles. |
|
Generate ipywidget styles. |
|
Generate markdown rendering styles. |
|
Generate menu and menu bar styles. |
|
Generate pager styles. |
|
Generate command palette styles. |
|
Return a style class by its short name. |
|
|
|
Generate scrollbar styles. |
|
Generate drop shadow styles. |
|
Generate shortcuts display styles. |
|
Generate sidebar styles. |
|
Generate statusbar styles. |
|
Generate tab bar styles. |
Generate tabbed split container styles. |
|
|
Generate toolbar styles. |
Classes
Define a collection of colors. |
|
|
A representation of a color with adjustment methods. |
|
Very simple cache that discards the oldest item when the cache size is exceeded. |
|
Create a |
|
Create a new function with partial application of the given arguments and keywords. |
- class euporie.core.style.ColorPalette
Bases:
objectDefine a collection of colors.
- add_color(name: str, base: str, _base_override: str = '') ColorPalette
Add a color to the palette.
- class euporie.core.style.ColorPaletteColor(base: str, _base_override: str = '')
Bases:
objectA representation of a color with adjustment methods.
- adjust(hue: float = 0.0, brightness: float = 0.0, saturation: float = 0.0, rel: bool = True) ColorPaletteColor
Adjust the hue, saturation, or brightness of the color.
- Parameters:
hue – The hue adjustment.
brightness – The brightness adjustment.
saturation – The saturation adjustment.
rel – If True, perform a relative adjustment.
- Returns:
The adjusted color.
- darker(amount: float, rel: bool = True) ColorPaletteColor
Make the color darker.
- Parameters:
amount – The amount to darken the color by.
rel – If True, perform a relative adjustment.
- Returns:
The darker color.
- less(amount: float, rel: bool = True) ColorPaletteColor
Make bright colors brighter and dark colors darker.
- Parameters:
amount – The amount to adjust the color by.
rel – If True, perform a relative adjustment.
- Returns:
The adjusted color.
- lighter(amount: float, rel: bool = True) ColorPaletteColor
Make the color lighter.
- Parameters:
amount – The amount to lighten the color by.
rel – If True, perform a relative adjustment.
- Returns:
The lighter color.
- more(amount: float, rel: bool = True) ColorPaletteColor
Make bright colors darker and dark colors brighter.
- Parameters:
amount – The amount to adjust the color by.
rel – If True, perform a relative adjustment.
- Returns:
The adjusted color.
- towards(other: ColorPaletteColor, amount: float) ColorPaletteColor
Interpolate between two colors.
- euporie.core.style.base_styles(cp: ColorPalette) dict[str, str]
Generate base application styles.
- euporie.core.style.buffer_styles(cp: ColorPalette) dict[str, str]
Generate buffer and editor styles.
- euporie.core.style.build_style(cp: ColorPalette, have_term_colors: bool = True) Style
Create an application style based on the given color palette.
- euporie.core.style.cell_styles(cp: ColorPalette) dict[str, str]
Generate notebook cell styles.
- euporie.core.style.chrome_styles(cp: ColorPalette) dict[str, str]
Generate chrome and UI element styles.
- euporie.core.style.completion_styles(cp: ColorPalette) dict[str, str]
Generate completion menu styles.
- euporie.core.style.dataframe_styles(cp: ColorPalette) dict[str, str]
Generate dataframe display styles.
- euporie.core.style.dialog_styles(cp: ColorPalette) dict[str, str]
Generate dialog styles.
- euporie.core.style.get_style_by_name(name: str) type[PygmentsStyle]
Get Pygments style, caching the result.
- euporie.core.style.input_widget_styles(cp: ColorPalette, style_variants: dict[str, ColorPaletteColor]) dict[str, str]
Generate input widget styles.
- euporie.core.style.ipywidget_styles(cp: ColorPalette, style_variants: dict[str, ColorPaletteColor]) dict[str, str]
Generate ipywidget styles.
- euporie.core.style.markdown_styles(cp: ColorPalette) dict[str, str]
Generate markdown rendering styles.
Generate menu and menu bar styles.
- euporie.core.style.pager_styles(cp: ColorPalette) dict[str, str]
Generate pager styles.
- euporie.core.style.palette_styles(cp: ColorPalette) dict[str, str]
Generate command palette styles.
- euporie.core.style.scrollbar_styles(cp: ColorPalette) dict[str, str]
Generate scrollbar styles.
- euporie.core.style.shadow_styles(cp: ColorPalette) dict[str, str]
Generate drop shadow styles.
- euporie.core.style.shortcuts_styles(cp: ColorPalette) dict[str, str]
Generate shortcuts display styles.
- euporie.core.style.sidebar_styles(cp: ColorPalette) dict[str, str]
Generate sidebar styles.
- euporie.core.style.statusbar_styles(cp: ColorPalette) dict[str, str]
Generate statusbar styles.
- euporie.core.style.tab_bar_styles(cp: ColorPalette) dict[str, str]
Generate tab bar styles.
- euporie.core.style.tabbed_split_styles(cp: ColorPalette) dict[str, str]
Generate tabbed split container styles.
- euporie.core.style.toolbar_styles(cp: ColorPalette) dict[str, str]
Generate toolbar styles.