cleanup
This commit is contained in:
+1
-15
@@ -152,7 +152,7 @@ func (e *client) setReport(r report.Report) {
|
|||||||
|
|
||||||
func (e *client) BuildUI(w fyne.Window) {
|
func (e *client) BuildUI(w fyne.Window) {
|
||||||
mapCanvas := newInteractiveRaster(e, e.raster, e.onRasterWidgetLayout, e.onScrolled, e.onDragged, e.onDradEnd, e.onTapped)
|
mapCanvas := newInteractiveRaster(e, e.raster, e.onRasterWidgetLayout, e.onScrolled, e.onDragged, e.onDradEnd, e.onTapped)
|
||||||
mapCanvas.SetMinSize(fyne.NewSize(292, 292))
|
mapCanvas.SetMinSize(fyne.NewSize(640, 480))
|
||||||
|
|
||||||
toolbar := widget.NewToolbar(
|
toolbar := widget.NewToolbar(
|
||||||
widget.NewToolbarAction(
|
widget.NewToolbarAction(
|
||||||
@@ -202,20 +202,6 @@ func (e *client) loadWorld(w *world.World) {
|
|||||||
e.wp.CameraYWorldFp = w.H / 2
|
e.wp.CameraYWorldFp = w.H / 2
|
||||||
e.world.SetTheme(world.ThemeDark)
|
e.world.SetTheme(world.ThemeDark)
|
||||||
|
|
||||||
// if e.world == nil {
|
|
||||||
// w.SetCircleRadiusScaleFp(world.SCALE / 4)
|
|
||||||
// e.world = w
|
|
||||||
// e.wp.CameraXWorldFp = w.W / 2
|
|
||||||
// e.wp.CameraYWorldFp = w.H / 2
|
|
||||||
// e.world.SetTheme(world.ThemeDark)
|
|
||||||
// } else {
|
|
||||||
// if e.world.Theme().ID() == "theme.light.v1" {
|
|
||||||
// e.world.SetTheme(world.ThemeDark)
|
|
||||||
// } else {
|
|
||||||
// e.world.SetTheme(world.ThemeLight)
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
e.RequestRefresh()
|
e.RequestRefresh()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user