1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
#ifndef __IBUS_RIME_SETTINGS_H__
#define __IBUS_RIME_SETTINGS_H__
#include <glib.h>
// colors
#define RIME_COLOR_LIGHT 0xd4d4d4
#define RIME_COLOR_DARK 0x606060
#define RIME_COLOR_BLACK 0x000000
struct ColorSchemeDefinition {
const char* color_scheme_id;
int text_color;
int back_color;
};
// settings
struct IBusRimeSettings {
gboolean embed_preedit_text;
gint lookup_table_orientation;
struct ColorSchemeDefinition* color_scheme;
};
struct IBusRimeSettings g_ibus_rime_settings;
void
ibus_rime_load_settings(IBusConfig* config);
void
ibus_rime_config_value_changed_cb(IBusConfig* config,
const gchar* section,
const gchar* name,
GVariant* value,
gpointer unused);
#endif
|