MouseMove event and increase window title font size

这个提交包含在:
Noah 2021-10-03 21:46:36 -07:00
父节点 f6703bf1ba
当前提交 e8d4e7008b
共有 2 个文件被更改,包括 8 次插入1 次删除

查看文件

@ -15,6 +15,7 @@ type Event int
const (
NullEvent Event = iota
MouseOver
MouseMove
MouseOut
MouseDown
MouseUp
@ -351,6 +352,12 @@ func (s *Supervisor) runWidgetEvents(XY render.Point, ev *event.State,
s.hovering[id] = nil
}
// Mouse movement. NOTE: it is intentional that this fires on
// every tick even if XY was the same as last time.
handle(w.Event(MouseMove, EventData{
Point: XY,
}))
isClicked, _ := s.clicked[id]
if ev.Button1 {
if !isClicked {

查看文件

@ -121,7 +121,7 @@ func (w *Window) setupTitleBar() (*Frame, *Label) {
TextVariable: &w.Title,
Font: render.Text{
Color: w.ActiveTitleForeground,
Size: 10,
Size: 11,
Stroke: w.ActiveTitleBackground.Darken(40),
Padding: 2,
},