-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Themes #102
Comments
@Grizzly-Adam if I send you some pics of a new theme created by CrossZover could you implement them for me? |
I think that would be a good option for future. Yes, I can impliment them as soon as bell releases the cs-bos update. I dont want to delay it any further. |
Ok because @Crosszover has 2 new plain red and blue themes ready. Also a new PCPack is being worked on. |
Oh! Can I make a couple suggestions for the new PC pack? |
Pls send me those images so I can work on this tonight. |
I'll send them tonight after I'm done working |
@Grizzly-Adam do you have a business email so I can send them to you? |
Just send to my personal. I will PM you on mt.
|
I did the tables themeable too
@Gerold55, @Grizzly-Adam, can you please propose values for "Default/Freedom" theme and may adjust existing themes? I set currently as demo-values:
|
I am working late today, got a door tech here. Will try them layer if I get out soon. |
I have been working on skinning the mail program and was planning to ask you for more theme options to make it all work. I will try these ones and let you know if I need any more fields added (I was thinking something similar to the contrast colors, but with the main theme color (just not tied to other attributes). Sorry guy, I didn't get a lot done but I got out of work several hours late tonight. |
Is it still possible to override CS-BOS text color when registering hardware? I have a computer running 1.10 that I would like to give a monochrome green monitor. |
At the time - no. But I can implement it. It does sense since this color is more depending on hardware then on software version.. |
I removed my branched and pushed all my new changes to my master: https://github.com/bell07/minetest-laptop For more systematic attribute names shema I renamed the table parameters to:
Can you please provide the default values to me or set up a branch that I can merge? which theming option do you like to have in addition? Let me know so I can implement it as I find time.
This should be simple as the "prefixes" does work generic Example: new prefix "abc" They are two challanges:
I added the option hwdef.tty_style, so you can set the tty_style='AMBER', tty_style='GREEN' or tty_style='WHITE' to the hardware definition. |
Added support for textures replacement in themes:
to replace the email trash button icon if an theme is selected. works with all theme:get_image_button() (all buttons in mail_app) and if the new method theme:(get_texture) is used (bomb or boom in TNTSweeper). Should be complete, if something missed, let me know. The tetris is difficult because additional texutre colorization is used. |
added support for texture_replacements in launcher to replace the app icons... |
this is done by texture_replacements support mentioned above In my more_theming_support branch. The changes could be merged if the tables theming support is finished (Themes adjustment needed to use the new colorizing parameters) |
added some table colors to themes. @Grizzly-Adam , please check if the colors does match your imagination |
Thanks bell07, I will take a look. I am hoping that I can concentrate well enough to fully evaluate it. I am returning to work tomorrow. |
@bell07 Give me two more things and I theme I can fully skin the apps to match the themes (except for app specific buttons). I need: |
ok, new prefix "muted" |
@Grizzly-Adam do you need support you to add the required things? You need just to add default values for "muted_textcolor" to "bgcolor" to the default theme "Freedom" in themes.lua, then to the other themes if differ. In code you can access the values by "mtos.theme.muted_textcolor" and "mtos.theme.bgcolor" or using prefix in theme:get_* methods.
This is possible too with my last changes. Just define in theme
|
By the way, I am unhappy with "Freedom" as technically fallback theme. The fallback should not be green. The most themes needs to override most values because not green. |
I agree, we need something with the typical blues and greys. Either a new basic theme, or use the clouds theme. |
Are you working on skins colors adjustments? If not I can consolidate the default theme and degrade the Freedom to "usua"l theme in the evening. "default" is hidden hard-coded so it will be really fallback-only definition, with background image = "" and so |
I am not currently. Go ahead and make your changes and I will start after work. |
I done the split of freedom from fallback values and removed all fallback redundancies. more_theming_support |
maybe (needs to be tested) we can change the text color by colorizing the text string using minetest.colorize(color, string)`, but no idea how to theme the green bar and background in dropdown :-( By the way, I found in lua_api.txt the formspec
Maybe we can remove all "1-color-backgrounds" and replace them by this command? So we can remove some texture files? I write the theme:get_background(texture or rgb) method to be able to use both, texture and color in "background" settings. |
I looked all the themes over, made some adjustments (mainly to table colors and textcolor). Amber theme is complete, green theme is now done as well. Improved background on CS-BOS Shell theme. Made all shell themes max_os_version 5.5 max, chess 5.51 min. @bell07 I think it is just the bottom three items left on your checklist. |
@Gerold55 Here is my attempt at sprucing up the printer screen. Looking for input. |
Looks pretty good 👍
…On Mar 17, 2018 6:54 PM, "Grizzly Adam" ***@***.***> wrote:
@Gerold55 <https://github.com/gerold55> Here is my attempt at sprucing up
the printer screen. Looking for input.
[image: screenshot from 2018-03-17 17-46-35]
<https://user-images.githubusercontent.com/35204361/37560752-35a23b40-2a0c-11e8-8b23-8cce15e5e0fd.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#102 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANM6l5dZIkjFo3-iZbx4T4dEa_4k2JrLks5tfZQagaJpZM4SSiUn>
.
|
I see we are confused both on the lot of new settings :P desktop - Launcher Setting (Background only) Do you see prefixes we can consolidate? Maybe app, major, minor or muted could be re-used? I think "Label-Textarea" shoud be themed in same way as the table. So the bgcolor1 is "table_background" (The background image is the same color as table_bgcolor RGB value) What is the reason for bgcolor2? Do we need new "alt" prefix or we can re-use existing one? |
Looks in the mail app for the use of bgclolr2 (now alt_background). I
needed two background colors in there-- I think it was for the right
"message" payne.
…On Mon, Mar 19, 2018 at 2:21 AM, bell07 ***@***.***> wrote:
How about theme.background and theme.alt_background. And you are the one
who named the bgcolor to begin with :P
I see we are confused both on the lot of new settings :P
Let consolidate the existing prefixes:
desktop - Launcher Setting (Background only)
desktop_icon - Background for app icon in launcher
desktop_icon_label - THe label under app icon in launcher
app - setting for App Window (Background)
titlebar - The title bar in App window
back - App window back button
exit - App window Exit button
major - Highlighted (Button)
minor - Not highlighted (Button)
muted - ??
contrast - Dark area under not themeable elements
table - Table colorizing
table_highlight - "The green bar" - highlighted table colorizing
status_online - "green"
status_disabled - "yellow"
status_off - "red"
Do you see prefixes we can consolidate? Maybe app, major, minor or muted
could be re-used?
I think "Label-Textarea" shoud be themed in same way as the table. So the
bgcolor1 is "table_background" (The background image is the same color as
table_bgcolor RGB value)
What is the reason for bgcolor2? Do we need new "alt" prefix or we can
re-use existing one?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#102 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhktCaXvc-dvsxnsMImF5_wg8NYgY8K0ks5tf1x8gaJpZM4SSiUn>
.
|
I see some textures are named wrong. All textures needs to be named "laptop_" to avoid overwrites by other mods.
Can you please push the changes for review? I checked the PNG-files, the next of them seems to be not used: |
I will double check all these files tonight and send the push.
…On Mon, Mar 19, 2018 at 12:16 PM, bell07 ***@***.***> wrote:
I see some textures are named wrong. All textures needs to be named
"laptop_" to avoid overwrites by other mods.
printer_button.png
printer_button1.png (unused?)
printer_printed.png (unused?)
tetris_block.png
I looked all the themes over, made some adjustments (mainly to table
colors and textcolor).
Can you please push the changes for review?
I checked the PNG-files, the next of them seems to be not used:
laptop_calendar.png
laptop_email_letter_new.png
laptop_email_trash_B.png
laptop_m_bios.png
laptop_manual.png
laptop_theme_ambershell_mail.png
laptop_theme_greenshell_mail.png
laptop_txt_document.png
printer_button1.png
printer_printed.png
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#102 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhktCTNlaUEvcM_PO2SOg-rZqFV5J0Yrks5tf-f7gaJpZM4SSiUn>
.
|
I deleted all the mentions files from my install and found no issue. Lets hang onto calendar, bios, manual, and text document (maybe place them in their own repository or something) because we will probably use them later. Renamed tetris_block.png and printer_button.png. Updated tetris & mail apps, full colour, amber and green shell themes to reflect these changes. Update pushed. |
Thank you! I checked all and seems to be fine. About tetris monochrome theming: I tired the ember theme on CUBE since it is selectable. In tetris the blocks are colorized, because the "tty_monochrome" setting is set in OS version and HW-node, the Cube both does not match. What do you think, should be the "tty_monochrome" setteable on theme too? So tetris will be monochrome on "more modern" devices if ember or green theme selected. (I vote for yes, can do it in evening) Created new branch to store unused textures: https://github.com/Gerold55/minetest-laptop/tree/unused_textures The last point is to check README, and API doc if all new things are mentioned. I do rewrite the theming documentation in API, grouped by prefixes in evening |
Yes, theme should set tty to make sure our apps all looks the way we intend
them to.
…On Tue, Mar 20, 2018 at 2:48 AM, bell07 ***@***.***> wrote:
Thank you! I checked all and seems to be fine.
About tetris monochrome theming: I tired the ember theme on CUBE since it
is selectable. In tetris the blocks are colorized, because the
"tty_monochrome" setting is set in OS version and HW-node, the Cube both
does not match. What do you think, should be the "tty_monochrome" setteable
on theme too? So tetris will be monochrome on "more modern" devices if
ember or green theme selected. (I vote for yes, can do it in evening)
Created new branch to store unused textures:
https://github.com/Gerold55/minetest-laptop/tree/unused_textures
The last point is to check README, and API doc if all new things are
mentioned. I do rewrite the theming documentation in API, grouped by
prefixes in evening
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#102 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhktCepAjkbCn60Qcw8EsyMnR9VRV1aHks5tgLRHgaJpZM4SSiUn>
.
|
The more I thinl about it the better setting tty through theme sounds. It will mean color is no longer tied to os version and we can make any old computer amber, green, or full color regardless of version. I looked at the reqdme last night and didnt find anything that needed updating. |
Note we have 2x tty settings:
I had the idea to merge tty_textcolor with themes "table_textcolor". But the tty_textcolor value is not RGB and needs to be supported by CS-BOS "TEXTCOLOR" command. I am about tty_monochrome setting. In CS-BOS the OS-Version and HW setting still should be used, for tetris app the setting should be used from theme ("optimized for monochrome") |
Introduced theme.monochrome_textcolor is set in both monochrome themes and used in tetris app. This attribute means "theme optimized for monochrome". Rewrote the API.md theming area: https://github.com/bell07/minetest-laptop/blob/more_theming_support/API.md#themes Still unhappy with nex prefixes (not in API.md). Introducing get_bgcolor_box() I added bgcolors to "major" / "minor" / "contrast". Looked to "Save as" dialog.
P prefer to reduce the count of used prefixes to avoid redundancies |
I used background, contrast_background, and alt_background in mail. All
image files. You already have app_background to make the title bar. Ideally
I woukd like it if we could use codes for all the colors. A lot of our
prefixes come from the need for both background and bgcolor.
…On Tue, Mar 20, 2018 at 1:00 PM, bell07 ***@***.***> wrote:
Introduced theme.monochrome_textcolor is set in both monochrome themes and
used in tetris app. This attribute means "theme optimized for monochrome".
Idea happens some other textures could be colorized same way as tetris
shape, so we could use gray textures instread of green or amber (needs to
be consolidated, maybe next development iteration)
Rewrote the API.md theming area:
https://github.com/bell07/minetest-laptop/blob/more_theming_support/API.md#themes
Still unhappy with nex prefixes (not in API.md).
Note: Each prefix can have textures _background and _button, and colors
_bgcolor, _textcolor.
Introducing get_bgcolor_box() I added bgcolors to "major" / "minor" /
"contrast". Looked to "Save as" dialog.
app_background - the "default" app background (white) (prefix "app")
alt_background - Underlay under table - prefix "alt" - > should it be prefix table (table_background?)
background - prefix-less is implemented as fallback. Which idea is in mail app for this texture? Maybe it should be "app" or an other prefix?
P prefer to reduce the count of used prefixes to avoid redundancies
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#102 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhktCdbPtJg123IMqCjKwR5Apfp3xV-_ks5tgUPNgaJpZM4SSiUn>
.
|
I see the app_background is not usable because of title bar. We need an explanation for all prefixes, the API should be understandeable for the case a new developer needs to write a fully new theme, the settings meaning should be predictable. Of course all elements was added on need, I try to consolidate them after is known what is needed :-) "background" needs to be prefixed. I think the "fallback" values without prefix should be removed, (background, bgcolor, textcolor) because irritated. |
Let me look at the code of mail app when I get home. Maybe major/minor can
work for other things.
…On Tue, Mar 20, 2018 at 3:27 PM, bell07 ***@***.***> wrote:
I see the app_background is not usable because of title bar.
can you propose which prefix have which meaning and which of them are
maybe redundant and coul be removed?
: major, minor, app, alt, table, muted
We need an explanation for all prefixes, the API should be understandeable
for the case a new developer needs to write a fully new theme, the settings
meaning should be predictable. Of course all elements was added on need, I
try to consolidate them after is known what is needed :-)
"background" needs to be prefixed. I think the "fallback" values without
prefix should be removed, (background, bgcolor, textcolor) because
irritated.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#102 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhktCYpGxg8QsZ2Sl1Tusy8ofQNsaHQqks5tgWYggaJpZM4SSiUn>
.
|
I did some more consolidation. See my branch / PR to your repo:
|
We don't use anything with the app prefix except app_background,. Maybe fold that into major? You did good figuring out how to remove the need for alt_background. I looked at all the others and it would cause a lot of compromised with our themes to remove any of them. The less options, the less we can emulator computers of various eras. Re #5 Monochrome contrast. I have tried setting this as dark, but it looks awful because you just end up with a nearly black screen with text that has been tinted not quite the right color. Looks way better orange/green with dark text. It works well and I think we are better leaving it alone. If we change it, we would want to change the background color to orange/green to make the "contrast" color to stand out-- and that hurts the eyes because it becomes too much bright color. I found a screen that did not get properly monochromed and was hoping you could take a look at it. In os_print_app.lua |
the meaning content does not match. But maybe the titlebar_textcolor should be "app_textcolor"? Or we should split the background to 2x images: the titlebar and the background? Maybe next iteration, I tink we should finalize the work.
The "contrast" prefix is for "dark background to place under white text elements that does not support textcolor". Of course it looks beter with dark text on orange/green, but not always possible. The Print app is a good example. Other screens that needs attention for contrast images are the Text editor, New Mail view, Save as does have filename input fields |
Yeah, I can do that. I would like to have a border on the right payne of
the mail app too.
…On Wed, Mar 21, 2018 at 12:59 AM, bell07 ***@***.***> wrote:
Applied the "table" theming to the preview in printer app. Changed the
Heading underlay to get_bgcolor_box("","contrast"), and Heading text to
"contrast_textcolor" that is amber now in amber theme.
[image: image]
<https://user-images.githubusercontent.com/4731334/37696193-305a3d06-2cd5-11e8-934d-9c97ed8a74d1.png>
The table_background under text areas looks strange on themes using
"table_border". Maybe you can create new textures for with 1x Pixel border
for such "table_background"?
[image: image]
<https://user-images.githubusercontent.com/4731334/37696160-ef758d90-2cd4-11e8-85fd-87bbdce14802.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#102 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhktCfYAbxXFMQA_upWJhrdRIf61heb7ks5tgexNgaJpZM4SSiUn>
.
|
The mail app uses the same logic for text area is themed using table prefix ("table_background"). So it should work out of the box for mail, if it does work for print file. |
I have several 1x1 images in the textures fokder, grab one of them and see
uf it works. I plan to rename all the 1x1s so they have aimilar names and
are more available to all themes-- also will be easier to purge them all
should we no longer need them.
…On Wed, Mar 21, 2018 at 8:08 AM, bell07 ***@***.***> wrote:
The mail app uses the same logic for text area is themed using table
prefix ("table_background"). So it should work out of the box for mail, if
it does work for print file.
I fear the border line scaling issues because of different area sizes :-(
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#102 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhktCUrcqxSsOXkWCwsal0rnentqVFrNks5tglDSgaJpZM4SSiUn>
.
|
What do you mean I should test if works? All of them are used as "buttons" textures. I checked all of them, the next are not used:
used only for table_color => can be converted to bigger texture with border
Did you tried the borders for "table_background" images? |
I read your post wrong, I thought you were going to use a 1x1 pixel image
to make the border. I assumed you would do a top, bottom, left, and right
images as the lines for the border. Now I understand that is not what you
meant.
…On Wed, Mar 21, 2018 at 4:32 PM, bell07 ***@***.***> wrote:
$ file textures/* | grep '1 x 1'
textures/laptop_theme_ambershell_desktop_icon_label_button.png: PNG image data, 1 x 1, 8-bit/color RGB, non-interlaced
textures/laptop_theme_boing_major_button.png: PNG image data, 1 x 1, 8-bit/color RGB, non-interlaced
textures/laptop_theme_clouds_desktop_icon_label_button.png: PNG image data, 1 x 1, 1-bit colormap, non-interlaced
textures/laptop_theme_colors_light_grey.png: PNG image data, 1 x 1, 8-bit/color RGB, non-interlaced
textures/laptop_theme_desktop_icon_label_button_black.png: PNG image data, 1 x 1, 1-bit colormap, non-interlaced
textures/laptop_theme_desktop_icon_label_button_darkblue.png: PNG image data, 1 x 1, 8-bit/color RGB, non-interlaced
textures/laptop_theme_desktop_icon_label_button_grey.png: PNG image data, 1 x 1, 1-bit colormap, non-interlaced
textures/laptop_theme_desktop_icon_label_button_white.png: PNG image data, 1 x 1, 1-bit colormap, non-interlaced
textures/laptop_theme_greenshell_desktop_icon_label_button.png: PNG image data, 1 x 1, 8-bit/color RGB, non-interlaced
textures/laptop_theme_shell_desktop_icon_label_button.png: PNG image data, 1 x 1, 8-bit/color RGB, non-interlaced
What do you mean I should test if works? All of them are used as "buttons"
textures.
I checked all of them, the next are not used:
- laptop_theme_colors_light_grey.png
- laptop_theme_desktop_icon_label_button_darkblue.png
used only for table_color => can be converted to bigger texture with border
- laptop_theme_desktop_icon_label_button_white.png
Did you tried the borders for "table_background" images?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#102 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhktCbkOHVn3y0TOlHB5_uqSJzxgLDTqks5tgsbugaJpZM4SSiUn>
.
|
Found a beter way to solve the border problem: A empty themed table instead of background images. Removed again the "table_backgrounds" setting and not used textures
From my point of view all work is done now! EDIT: ok, forgot last thing: The "contrast" background should be still dark in ember and green theme. Maybe dark-amber and dark-green instread of black? Maybe with border on texture to avoid "full black screen"? |
If I get the chance I will check PR tonight, test and issue pr to maon
build tonight. But I wobt be home until late so it may have to wait until
tomorrow.
…On Thu, Mar 22, 2018 at 2:11 AM, bell07 ***@***.***> wrote:
Found a beter way to solve the border problem: A empty themed table
instead of background images.
Implemented, see my branch / the PR in your repo.
Removed again the "table_backgrounds" setting and not used textures
- laptop_theme_colors_light_grey.png,
- laptop_theme_desktop_icon_label_button_darkblue.png,
- laptop_theme_desktop_icon_label_button_white.png
From my point of view all work is done now!
Please review and test the changes if you see something is still missed.
If not, we can setup the PR to upstream/master
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#102 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhktCfnPXTzAo4vT7WCAGvWQmQWffdgJks5tg06_gaJpZM4SSiUn>
.
|
Ok, I changed back the "contrast" to amber/green in the both themes. Previously some parts (Write mail screen for example) was colorized using contrast_bgcolor/contrast_textcolor as I expected, but looks not nice. If you merges my both commits to your branch we can merge them |
All Changes merged! |
Should we be able to make the icons customizable like the other things of the theme?
Last-To-Do List
The text was updated successfully, but these errors were encountered: