Gerold55 / laptop

Introducing the MineTest Laptop Mod
Other
26 stars 14 forks source link

app-request: Calculator #31

Closed bell07 closed 6 years ago

bell07 commented 6 years ago

Basic calculator with 0-9, +, -, *, /, C, will be fine (proposed by @v-rob in forum)

bell07 commented 6 years ago

https://github.com/bell07/laptop/commit/2f3c4acca9be0081bc4e3aebc099345b0873b1ff

Gerold55 commented 6 years ago

Can it be centered/buttons a little bigger and can the buttons have default colors?

bell07 commented 6 years ago

What do you mean with default colours? "major_button" or "minor_button" themed?

The issue with the both themed buttons is they are not really usable because of white border around. Can you please remove the white border on laptoptheme_major_button.png and laptoptheme_minor_button.png?

The major texture is used in the launcher_settings app only at the time. After the change the button size will grown and needs to be adjusted by formspec parameters. The minor texture is not used. I do not count the mail and calculator because both needs to be formspec-optimized.

Gerold55 commented 6 years ago

default as in Minetest default so the buttons can be seen better.

bell07 commented 6 years ago

Default is if "basic theme" selected. If other themed buttons are bad visible, the textures needs to be adjusted.

Gerold55 commented 6 years ago

Oh ok :)

Gerold55 commented 6 years ago

so we have to either add fonts or use different backgrounds

bell07 commented 6 years ago

I found a way to change the Button text and working add a new method theme:get_button(area, prefix, code, text) But the buttons needs be without the white borders, the size can be set in "area" (pos+size) definition

Gerold55 commented 6 years ago

Check the new textures update

bell07 commented 6 years ago

Now the textures have transparent border that results the default formspec button is visibe. Please remove the transparent border too. Leave over only the button. The texture can be smaller so it will be automatically stretched to the button size. Please do the same for the theme_minor_button

Gerold55 commented 6 years ago

done

bell07 commented 6 years ago

Check out new version from my master (all files). Now the calculator and mail should be looks nicer now