Skip to content

Commit

Permalink
Merge branch 'development' into MUSHclient
Browse files Browse the repository at this point in the history
  • Loading branch information
fiendish committed Apr 19, 2018
2 parents 3166ec2 + b58d9f4 commit 2e451c2
Show file tree
Hide file tree
Showing 4 changed files with 113 additions and 51 deletions.
2 changes: 2 additions & 0 deletions MUSHclient/AardwolfPackageChanges.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Aardwolf Client Package Major Changes List

r1992 snapshot
- new feature: Statmon miniwindow label colors will match the current theme by default unless customized. You'll need to right-click and choose 'Reset Defaults' to see this on an existing install.
- new theme: Green Neon to complement Pink Neon.
- misc change: Using 'resetaard' will now tell the user about 'aard layout help'.

r1991 snapshot
Expand Down
4 changes: 2 additions & 2 deletions MUSHclient/lua/aardmapper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ function draw (uid)
if config.SHOW_ROOM_ID then
Theme.DrawTextBox(win, FONT_ID,
(config.WINDOW.width - WindowTextWidth (win, FONT_ID, "ID: "..uid)) / 2, -- left
title_bottom-1, -- top
title_bottom, -- top
"ID: "..uid, false, false)
end

Expand All @@ -894,7 +894,7 @@ function draw (uid)
if areaname then
Theme.DrawTextBox(win, FONT_ID,
(config.WINDOW.width - WindowTextWidth (win, FONT_ID, areaname)) / 2, -- left
config.WINDOW.height - 3 - font_height, -- top
config.WINDOW.height - 4 - font_height, -- top
areaname:gsub("^%l", string.upper), false, false)
end -- if area known

Expand Down
65 changes: 65 additions & 0 deletions MUSHclient/lua/mw_themes/Green_Neon.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
-- Copy this file to create your own custom themes, but please do not modify this file.

-- GREEN NEON THEME
return {
LOGO_OPACITY = 0.06,

PRIMARY_BODY = 0x000000,
SECONDARY_BODY = 0x001100,
BODY_TEXT = 0x00ff00,

-- flat buttons
CLICKABLE = 0x002200,
CLICKABLE_HOVER = 0x007b00,
CLICKABLE_HOT = 0x116060,
CLICKABLE_TEXT = 0x00ff00,
CLICKABLE_HOVER_TEXT = 0x11ff11,
CLICKABLE_HOT_TEXT = 0x10ff00,

TITLE_PADDING = 2,

-- for 3D surfaces
THREE_D_HIGHLIGHT = 0x00ff00,

THREE_D_GRADIENT = false,
THREE_D_GRADIENT_FIRST = 0x000000,
-- THREE_D_GRADIENT_SECOND = 0x103010,
-- THREE_D_GRADIENT_ONLY_IN_TITLE = false,

THREE_D_SOFTSHADOW = 0x005000,
THREE_D_HARDSHADOW = 0x000000,
THREE_D_SURFACE_DETAIL = 0x00ff00, -- for contrasting details/text drawn on 3D surfaces

-- for scrollbar background
SCROLL_TRACK_COLOR1 = 0x00aa00,
SCROLL_TRACK_COLOR2 = 0x224422,
VERTICAL_TRACK_BRUSH = miniwin.brush_hatch_forwards_diagonal,

DYNAMIC_BUTTON_PADDING = 20,
RESIZER_SIZE = 16,

-- bg_texture_function is optional to override the default behavior.
-- See Charcoal.lua for a "do nothing" variant.
-- Just make sure to return the path to a valid png file.
bg_texture_function = function()
imgpath = GetInfo(66).."worlds/plugins/images/bg1.png"

WindowCreate("WiLl_It_BlEnD", 0, 0, 0, 0, 0, 0, Theme.THREE_D_HIGHLIGHT)
WindowLoadImage("WiLl_It_BlEnD", "tExTuRe", imgpath)
local tw = WindowImageInfo("WiLl_It_BlEnD", "tExTuRe", 2)
local th = WindowImageInfo("WiLl_It_BlEnD", "tExTuRe", 3)
WindowResize("WiLl_It_BlEnD", tw, th, Theme.THREE_D_HIGHLIGHT)
WindowImageFromWindow("WiLl_It_BlEnD", "cOlOr", "WiLl_It_BlEnD")

WindowDrawImage("WiLl_It_BlEnD", "tExTuRe", 0, 0, 0, 0, 1)
WindowFilter("WiLl_It_BlEnD", 0, 0, 0, 0, 7, 50)
WindowFilter("WiLl_It_BlEnD", 0, 0, 0, 0, 8, 30)
WindowFilter("WiLl_It_BlEnD", 0, 0, 0, 0, 7, -120)
WindowBlendImage("WiLl_It_BlEnD", "cOlOr", 0, 0, 0, 0, 5, 0.9)

imgpath = GetInfo(66).."worlds/plugins/images/temp_theme_blend.png"
WindowWrite("WiLl_It_BlEnD", imgpath)

return imgpath
end
}

0 comments on commit 2e451c2

Please sign in to comment.