refactor: add tui.active_theme() function
This commit is contained in:
parent
a6b3da2d16
commit
e01d9c13b7
1 changed files with 4 additions and 0 deletions
|
|
@ -1933,6 +1933,10 @@ pub fn config() *const @import("config") {
|
||||||
return ¤t().config_;
|
return ¤t().config_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn active_theme() *const Widget.Theme {
|
||||||
|
return current().current_theme();
|
||||||
|
}
|
||||||
|
|
||||||
pub fn active_color_scheme() ColorScheme {
|
pub fn active_color_scheme() ColorScheme {
|
||||||
return current().color_scheme;
|
return current().color_scheme;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue