Skip to content

add config options#19

Draft
michel-ZH wants to merge 4 commits into
xhebox:masterfrom
michel-ZH:master
Draft

add config options#19
michel-ZH wants to merge 4 commits into
xhebox:masterfrom
michel-ZH:master

Conversation

@michel-ZH

Copy link
Copy Markdown

I moved config.c's im_toggle to im.c and made the toggle key user-configurable in a new config.h file. I've also added a boolean check if user prefers single press / double press of the toggle key to toggle the im.

I also made the pop-up-'s colours and font likewise configurable in that file.

Are those changes desirabel?

@michel-ZH
michel-ZH marked this pull request as draft December 30, 2025 01:33
Comment thread popup_renderer.c Outdated
Comment on lines +275 to +277
PangoFontDescription *desc = pango_font_description_from_string(POPUP_FONT);
pango_layout_set_font_description(state->popup_pango_layout, desc);
pango_font_description_free(desc);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting font description does not need fontmap, just keep the old way of creating pango_ctx

Comment thread popup_renderer.c
double width,
double height,
double radius) {
double x,

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am using softtabs with two or four. and will format using clangd. maybe add your editor config file?

perihelion added 2 commits December 30, 2025 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants