[frontend] use gtk3 new api to get color
[core] add new send close event which can be used by module