Add OSK icon.
This commit is contained in:
parent
ae8a3ede3e
commit
84e1bf89d9
|
@ -95,6 +95,7 @@ FB_IMAGE_scrollr := framebuffer/res/icons/scrollr.png
|
||||||
FB_IMAGE_scrollu := framebuffer/res/icons/scrollu.png
|
FB_IMAGE_scrollu := framebuffer/res/icons/scrollu.png
|
||||||
FB_IMAGE_scrolld := framebuffer/res/icons/scrolld.png
|
FB_IMAGE_scrolld := framebuffer/res/icons/scrolld.png
|
||||||
|
|
||||||
|
FB_IMAGE_osk_image := framebuffer/res/icons/osk.png
|
||||||
|
|
||||||
FB_IMAGE_pointer_image := framebuffer/res/pointers/default.png
|
FB_IMAGE_pointer_image := framebuffer/res/pointers/default.png
|
||||||
FB_IMAGE_hand_image := framebuffer/res/pointers/point.png
|
FB_IMAGE_hand_image := framebuffer/res/pointers/point.png
|
||||||
|
|
|
@ -173,17 +173,15 @@ fbtk_enable_oskb(fbtk_widget_t *fbtk)
|
||||||
fbtk_set_text(widget, kbdbase[kloop].t);
|
fbtk_set_text(widget, kbdbase[kloop].t);
|
||||||
}
|
}
|
||||||
|
|
||||||
widget = fbtk_create_text_button(osk,
|
widget = fbtk_create_button(osk,
|
||||||
fbtk_get_width(osk) - furniture_width,
|
fbtk_get_width(osk) - furniture_width,
|
||||||
fbtk_get_height(osk) - furniture_width,
|
fbtk_get_height(osk) - furniture_width,
|
||||||
furniture_width,
|
furniture_width,
|
||||||
furniture_width,
|
furniture_width,
|
||||||
FB_FRAME_COLOUR,
|
FB_FRAME_COLOUR,
|
||||||
FB_COLOUR_BLACK,
|
&osk_image,
|
||||||
osk_close,
|
osk_close,
|
||||||
NULL);
|
NULL);
|
||||||
fbtk_set_text(widget, "\xe2\x8c\xa8");
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* exported function documented in fbtk.h */
|
/* exported function documented in fbtk.h */
|
||||||
|
|
|
@ -1377,7 +1377,15 @@ create_normal_browser_window(struct gui_window *gw, int furniture_width)
|
||||||
FB_FRAME_COLOUR, FB_COLOUR_BLACK,
|
FB_FRAME_COLOUR, FB_COLOUR_BLACK,
|
||||||
fb_osk_click,
|
fb_osk_click,
|
||||||
NULL);
|
NULL);
|
||||||
fbtk_set_text(widget, "\xe2\x8c\xa8");
|
widget = fbtk_create_button(gw->window,
|
||||||
|
fbtk_get_width(gw->window) - furniture_width,
|
||||||
|
fbtk_get_height(gw->window) - furniture_width,
|
||||||
|
furniture_width,
|
||||||
|
furniture_width,
|
||||||
|
FB_FRAME_COLOUR,
|
||||||
|
&osk_image,
|
||||||
|
fb_osk_click,
|
||||||
|
NULL);
|
||||||
} else {
|
} else {
|
||||||
widget = fbtk_create_fill(gw->window,
|
widget = fbtk_create_fill(gw->window,
|
||||||
fbtk_get_width(gw->window) - furniture_width,
|
fbtk_get_width(gw->window) - furniture_width,
|
||||||
|
|
|
@ -38,6 +38,8 @@ extern struct fbtk_bitmap scrollr;
|
||||||
extern struct fbtk_bitmap scrollu;
|
extern struct fbtk_bitmap scrollu;
|
||||||
extern struct fbtk_bitmap scrolld;
|
extern struct fbtk_bitmap scrolld;
|
||||||
|
|
||||||
|
extern struct fbtk_bitmap osk_image;
|
||||||
|
|
||||||
extern struct fbtk_bitmap pointer_image;
|
extern struct fbtk_bitmap pointer_image;
|
||||||
extern struct fbtk_bitmap hand_image;
|
extern struct fbtk_bitmap hand_image;
|
||||||
extern struct fbtk_bitmap caret_image;
|
extern struct fbtk_bitmap caret_image;
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 262 B |
Loading…
Reference in New Issue