Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Entire forum
➜ MUSHclient
➜ General
➜ Change main window background color
Change main window background color
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| DeerInHeadlights
(1 post) Bio
|
Date
| Sun 26 May 2019 07:52 AM (UTC) |
Message
| Is there a way to change the main window's background color? Preferably to a black to not detract from the contrast of the other windows.
I'm talking about the main MUSHclient window with the grey background. Not world or command windows.
Thanks | Top |
|
Posted by
| Nick Gammon
Australia (23,120 posts) Bio
Forum Administrator |
Date
| Reply #1 on Sun 26 May 2019 09:32 PM (UTC) |
Message
| I've added a new Lua function:
utils.setbackgroundcolour (ColourNameToRGB ("powderblue"))
You can make the background any colour you want by name or number. To go back to the default set it to 0xFFFFFFFF.
This is available in the 5.07 pre-release version. See here for how to get that:
http://www.gammon.com.au/forum/?id=13903 |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Fiendish
USA (2,533 posts) Bio
Global Moderator |
Date
| Reply #2 on Sun 26 May 2019 10:49 PM (UTC) |
Message
|
Quote: To go back to the default set it to 0xFFFFFFFF
That's a lot of Fs. Does that mean it supports an alpha channel? |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| Nick Gammon
Australia (23,120 posts) Bio
Forum Administrator |
Date
| Reply #3 on Sun 26 May 2019 11:34 PM (UTC) |
Message
| No. It means a valid colour won't have that many Fs. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nick Gammon
Australia (23,120 posts) Bio
Forum Administrator |
Date
| Reply #4 on Sat 01 Jun 2019 11:22 PM (UTC) |
Message
| The latest pre-release version of MUSHclient 5.07 also supports a script function SetFrameBackgroundColour that can be called from any script language (not necessarily Lua):
SetFrameBackgroundColour (ColourNameToRGB ("powderblue"))
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Quow
(5 posts) Bio
|
Date
| Reply #5 on Fri 28 Jun 2019 08:52 AM (UTC) |
Message
|
Nick Gammon said:
The latest pre-release version of MUSHclient 5.07 also supports a script function SetFrameBackgroundColour
How easy/viable/practical at all is it (is it just an impossibility?) to have a few more core-colour-controls over the actual main-window elements, for example being able to change the command-input-area (background & input text colour), or the core titlebar colours of the main MUSHclient window itself?
Would that all be a real bugger/nightmare code-wise because of them being main window elements getting info from the main Windows colour-theme itself, or is there some hope? I'd love to be able to really customise the whole window a bit more (be it colouring things, or removing elements), ideally with LUA commands to be done via easily user-configurable plugins.
Thanks for the frame colour thing anyway! | Top |
|
Posted by
| Fiendish
USA (2,533 posts) Bio
Global Moderator |
Date
| Reply #6 on Fri 28 Jun 2019 06:37 PM (UTC) |
Message
| It's not impossible, but it is usually the sort of thing done using the operating system's theme settings. |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| Nick Gammon
Australia (23,120 posts) Bio
Forum Administrator |
Date
| Reply #7 on Fri 28 Jun 2019 09:21 PM (UTC) |
Message
|
Quow said:
How easy/viable/practical at all is it (is it just an impossibility?) to have a few more core-colour-controls over the actual main-window elements, for example being able to change the command-input-area (background & input text colour), or the core titlebar colours of the main MUSHclient window itself?
You can already change the command-area background and text colour from the configuration dialog.
As for the rest (like menus), I suggest using your operating system to change that.
I don't really want to start fiddling with stuff that the operating system normally does - for one thing there are so many versions of Windows around that it would be a nightmare to test. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Quow
(5 posts) Bio
|
Date
| Reply #8 on Sat 29 Jun 2019 07:34 AM (UTC) |
Message
|
Fiendish said:
It's not impossible, but it is usually the sort of thing done using the operating system's theme settings.
No, it makes sense, especially with MUSHclient as it is. I think on more modern OS that philosophy has changed - or, it seems to - I know nothing at all about official standards, but I know on Windows 10 now, if I open Chrome, all the titlebars and frames are black/dark... in Thunderbird, they are a light blue... Sublime text is grey... windows explorer is white... Steam is a very dark grey... Photoshop is a light grey...
It seems that there's been some recent trend for programs to all have their own colour themes rather than JUST use the Windows "system theme" BUT I suspect this might be down to how Windows 10 handles these things backend, and would NOT play nice with all the (I know there are MANY) users that have older Windows - and the quite a lot that use Wine to run MUSHclient on Macs and Linux, so I imagine things might get "messy".
It was more a passing thought, one of those "It'd be nice if..." but only if it were a simple world! | Top |
|
Posted by
| Quow
(5 posts) Bio
|
Date
| Reply #9 on Sat 29 Jun 2019 09:42 AM (UTC) |
Message
|
Nick Gammon said:
You can already change the command-area background and text colour from the configuration dialog.
Would it be a pain for you to add LUA commands to change this? I only ask as for the Discworld MUD, my plugin-suite for it has a lot of colour-customisation for users (from miniwindow frames, backgrounds, highlights, fonts, all sorts), and it'd be nice if from plugin-end I could make the command-input colours change "automatically" based on what colour-scheme the user selects from menus all in one. (eg if they pick the dark green theme, the more things in the MUSHclient window I can change to match the theme, the better).
It's not a big issue, so don't put yourself out, only a request if it's a simple job, thank you! | Top |
|
Posted by
| Fiendish
USA (2,533 posts) Bio
Global Moderator |
Date
| Reply #10 on Sat 29 Jun 2019 03:37 PM (UTC) |
Message
|
Quote: I only ask as for the Discworld MUD, my plugin-suite for it...
I think your website is down? |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| Nick Gammon
Australia (23,120 posts) Bio
Forum Administrator |
Date
| Reply #11 on Sat 29 Jun 2019 08:51 PM (UTC) |
Message
|
Quow said:
Would it be a pain for you to add LUA commands to change this?
It's Lua not LUA. It is a name, not an acronym. :)
All of the world configuration options can be changed in scripting using SetOption (for numbers) and SetAlphaOption (for strings).
In the case of the command window:
SetOption ("input_background_colour", ColourNameToRGB ("darkgreen"))
SetOption ("input_text_colour", ColourNameToRGB ("yellow"))
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nick Gammon
Australia (23,120 posts) Bio
Forum Administrator |
Date
| Reply #12 on Sat 29 Jun 2019 09:16 PM (UTC) |
Message
| A possibility for you would be to go into full-screen mode (Ctrl+Alt+F) - see the View menu.
That hides the menus. Then if you hide the status bar, tool bars etc. you are just left with the main window. In full-screen mode the main menus are added to the menu that appears if you RH-click on the output window.
You can do that in code with:
DoCommand ("FullScreenMode")
However that is a toggle and I don't think you can find the current mode. I can add that to GetInfo if you like.
If you did that then with judicious use of miniwindows you can make the look-and-feel more-or-less what you want. You might want to add a little button somewhere to exit full-screen mode in case the user wants to do something else with their PC. :) |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nick Gammon
Australia (23,120 posts) Bio
Forum Administrator |
Date
| Reply #13 on Sat 29 Jun 2019 09:28 PM (UTC) |
Message
| I've added that test to the pre-release version.
This is available in the 5.07 pre-release version. See here for how to get that:
http://www.gammon.com.au/forum/?id=13903
GetInfo (125) returns true if the client is in full-screen mode. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Quow
(5 posts) Bio
|
Date
| Reply #14 on Sun 30 Jun 2019 05:18 AM (UTC) |
Message
|
Nick Gammon said:
I've added that test to the pre-release version.
GetInfo (125) returns true if the client is in full-screen mode.
That's great, thanks Nick (for all the above). Any customisation stuff through Lua adds to the possibilities!
Fiendish said:
I think your website is down?
Sadly yes since yesterday, the joys of finding the cheapest host I could, they claimed yesterday it was "standard maintenance", we will see what they say today! | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
33,383 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top