Nano Obssession: Chromeless window, Styles

Does the following:
 - Adds 'chromeless' mode (NanoUI defaults to using this)
  - Window borders disappear, replaced by in-browser elements for
    minimize/close/move/resize.
  - You *must* move/resize slowly when using this mode, or it can have
    unexpected results, as the JavaScript cannot keep up as well as the
    native windows movement.
 - StatusGroups are now transparent: This looks nice. That's about it.
 - Body background switched to a .svg format for the NanoUI Logo.

 - Coder things:
  - Nano's JavaScript now has a new class, NanoWindow
   - NanoWindow handles all of the chromeless work. It'll be used to
     replace portions of NanoStateManager later.
This commit is contained in:
Tigercat2000
2016-01-18 09:54:40 -08:00
parent 5a88ea74f0
commit 48349a3d9e
22 changed files with 447 additions and 167 deletions
+9 -2
View File
@@ -186,7 +186,15 @@ nanoui is used to open and update nano browser uis
"autoUpdateContent" = auto_update_content,
"showMap" = show_map,
"mapZLevel" = map_z_level,
"user" = list("name" = user.name)
"user" = list(
"name" = user.name,
"fancy" = user.client.prefs.nanoui_fancy
),
"window" = list(
"width" = width,
"height" = height,
"ref" = window_id
)
)
return config_data
@@ -334,7 +342,6 @@ nanoui is used to open and update nano browser uis
/datum/nanoui/proc/get_html()
// before the UI opens, add the layout files based on the layout key
add_stylesheet("layout_[layout_key].css")
add_template("layout", "layout_[layout_key].tmpl")
var/head_content = ""