refactor: move most of the horrible add_module macro content into proper functions
This commit is contained in:
@@ -26,7 +26,7 @@ pub struct FocusedModule {
|
||||
icon_theme: Option<String>,
|
||||
|
||||
#[serde(flatten)]
|
||||
pub common: CommonConfig,
|
||||
pub common: Option<CommonConfig>,
|
||||
}
|
||||
|
||||
const fn default_icon_size() -> i32 {
|
||||
@@ -37,6 +37,10 @@ impl Module<gtk::Box> for FocusedModule {
|
||||
type SendMessage = (String, String);
|
||||
type ReceiveMessage = ();
|
||||
|
||||
fn name() -> &'static str {
|
||||
"focused"
|
||||
}
|
||||
|
||||
fn spawn_controller(
|
||||
&self,
|
||||
_info: &ModuleInfo,
|
||||
|
||||
Reference in New Issue
Block a user