klipper icon indicating copy to clipboard operation
klipper copied to clipboard

Design Enhancement - New Icons Suggestion

Open alfsoft opened this issue 8 years ago • 37 comments

Hello. Here are icons I made specially for Klipper. I got tired of standard "FR" icon so I decided to remake it into something understandable visually and language independent. Then I did remake all other icons to match this new feedrate icon. That's how they look:

screen_mockup

If you like them I will make a pull request for icons.py file containing all these icons.

alfsoft avatar Sep 15 '18 19:09 alfsoft

I,

Nice icon.

It would also be necessary to create zones to separate the data. It would be more legible.

best

J-charles-C avatar Sep 16 '18 05:09 J-charles-C

+1 vote for new icons

ozligia avatar Sep 16 '18 10:09 ozligia

+1 May I suggest you also add a dynamic hotend icon so that it visually shows if it is on, like the hotbed one? That would be great.

micheleamerica avatar Sep 16 '18 16:09 micheleamerica

FWIW, I like the nozzle, fan, and bed icons. Not sure about the feed rate icon, but I don't think FR is particularly useful either. I'm open to the change.

I'd be curious what others say - @Arksine, @marcio-ao, @mcmatrix, do you have any comments?

-Kevin

KevinOConnor avatar Sep 17 '18 00:09 KevinOConnor

Same here, nozzle, fan, and bed icons are fine. Also not sure about the feed rate icon. Should we keep similar icon styles for both hd44780 and graphical LCDs?

I don't know if it's a discussion for this issue but can we do this? HD44780 custom chars (icons) are the same size as the font so that icons can be used as a character. Can this be simulated in graphical LCDs? Icons or sprites same size as the font. Then you can insert icons into the text without the need to specify exact x,y position. Example custom screen (card) in HD44780. I can easily mix custom chars (icons) and normal characters.

### special characters for hd44780
# \x00 - thermometer
# \x01 - heater_bed
# \x02 - speed_factor
# \x03 - clock
# \x04 - degrees
# \x05 - usb
# \x06 - sdcard
# \x7e - right arrow

[menu __card2004_static]
type: card
name: Card 20x04
content:
    "\x00{0:3s}\x04\x7e{1:3s}\x04   {2}"
    "\x01{3:3s}\x04\x7e{4:3s}\x04   \xa5{8}"
    "fn{6} \x02{5} {7}"
    "{9}"
items:

It would be wonderful if we can do the same with graphicals LCDs.

mcmatrix avatar Sep 17 '18 06:09 mcmatrix

I will post some "FR" icon variants to choose from. @mcmatrix what resolution do HD44780 chars have? 5x8 or 5x10? I want to try to draw these custom characters too :)

alfsoft avatar Sep 17 '18 07:09 alfsoft

@alfsoft Current HD44780 custom char list

HD44780_chars = [
    # Thermometer
    0b00100,
    0b01010,
    0b01010,
    0b01010,
    0b01010,
    0b10001,
    0b10001,
    0b01110,
    # Heated bed
    0b00000,
    0b11111,
    0b10101,
    0b10001,
    0b10101,
    0b11111,
    0b00000,
    0b00000,
    # Speed factor
    0b11100,
    0b10000,
    0b11000,
    0b10111,
    0b00101,
    0b00110,
    0b00101,
    0b00000,
    # Clock
    0b00000,
    0b01110,
    0b10011,
    0b10101,
    0b10001,
    0b01110,
    0b00000,
    0b00000,
    # Degrees
    0b01100,
    0b10010,
    0b10010,
    0b01100,
    0b00000,
    0b00000,
    0b00000,
    0b00000,
    # USB
    0b01110,
    0b01110,
    0b01110,
    0b11111,
    0b11111,
    0b11111,
    0b00100,
    0b00100,
    # SD
    0b00000,
    0b00111,
    0b01111,
    0b11111,
    0b11111,
    0b11111,
    0b11111,
    0b00000,
]

HD44780 can only have 8 custom characters simultaneously, these are uploaded to display ram. So no space for fancy dynamic icons.

mcmatrix avatar Sep 17 '18 07:09 mcmatrix

@KevinOConnor: I think these are cool! I'll have to find out whether there is interest in moving this back to our Marlin branch of the UI :)

marcio-ao avatar Sep 17 '18 13:09 marcio-ao

I like these. Looking forward to seeing what feed rate variants @alfsoft comes up with.

Arksine avatar Sep 18 '18 13:09 Arksine

I don't know if it's a discussion for this issue but can we do this? HD44780 custom chars (icons) are the same size as the font so that icons can be used as a character. Can this be simulated in graphical LCDs? Icons or sprites same size as the font. Then you can insert icons into the text without the need to specify exact x,y position.

We can simulate that, but I don't think we want to use special characters in write_text() - instead, we could add a new method like write_glyph(col, row, "hotbed") that would display the appropriate icon.

EDIT: Ah - your question was about inserting icons into strings. We could add a helper function - something like write_icons_and_text("msg and ~hotbed~") - and have it translate to the appropriate low-level write_text() and write_glyph() methods..

HD44780 can only have 8 custom characters simultaneously, these are uploaded to display ram. So no space for fancy dynamic icons.

FYI, if someone really wanted to, I think it would be possible to do animations on the HD44780. Although there are only 8 custom glyphs available, it should be possible to change the glyph definition each update to animate that glyph.

-Kevin

KevinOConnor avatar Sep 18 '18 15:09 KevinOConnor

FYI, if someone really wanted to, I think it would be possible to do animations on the HD44780. Although there are only 8 custom glyphs available, it should be possible to change the glyph definition each update to animate that glyph.

Thanks, good to know that it's possible.

EDIT: Ah - your question was about inserting icons into strings. We could add a helper function - something like write_icons_and_text("msg and ~hotbed~") - and have it translate to the appropriate low-level write_text() and write_glyph() methods..

That would be super. If we can have that high-level write function for GLCD then it's possible to make nice text screens with icons as HD44780 has. Something like this.

...
name: GLCD 16x04
content:
    "~hotend~{0:3s}~degrees~~rarraw~{1:3s}~degrees~   {2}"
    "~hotbed~{3:3s}~degrees~~rarraw~{4:3s}~degrees~   {8}"
    "~fan~{6} ~speed~{5} {7}"
    "{9}"
items:
...

Then we have nice screens for both HD44780 and GLCD. Btw if you have HD44780 then you can try __screen2004_static deck.

mcmatrix avatar Sep 18 '18 17:09 mcmatrix

@KevinOConnor: When using the graphics LCD, it is possible to take advantage of the fact that the bitmap buffer is XORed with the text buffer. So suppose you wanted to have two frames of a fan animation, and wanted to update it fast using a single character write, without having to use two of the four custom-character glyphs slots. One way to do this is to paint the first frame of the animation on the bitmap buffer at startup, then generate a custom character glyph which is the XOR of the first and second frame. Now, you can animate the fan simply by alternatively writing the custom-glyph and a space to the text buffer. So, you can actually animate two frames with one custom-glyph.

marcio-ao avatar Sep 19 '18 21:09 marcio-ao

@marcio-ao - that is a neat hack!

Just to be clear though, I don't think Klipper needs to optimize the animations. There should be enough bandwidth and processing power to write out everything in pure graphics mode - even all the screen text could be written in graphics mode if desired. (Klipper prioritizes all other activities over lcd updates, so even if there was a resource contention it should only result in slight pauses to screen updates.)

-Kevin

KevinOConnor avatar Sep 20 '18 13:09 KevinOConnor

Sorry for the delay. Here are some of Feedrate icon variants: klipper_fr_icon_variants

And here are HD44780 icons. Top row is what we have now. Bottom two rows are my variant(s): standard_klipper_text_icons_enlarged

Will try to test these 5x8 icons on real HD44780 + Arduino board as soon as possible.

alfsoft avatar Sep 20 '18 17:09 alfsoft

I like the feedrate icon from the original first post the best. B as second best.

oderwat avatar Sep 20 '18 20:09 oderwat

I think B is good

bruce356 avatar Sep 20 '18 23:09 bruce356

Another vote for B.

Pedro Tonhozi de Oliveira | Ph.D. Visiting Assistant Professor Department of Entrepreneurship and Innovation Gordon Ford College of Business | Western Kentucky University

This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorized copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it.

On Thu, Sep 20, 2018 at 6:12 PM bruce [email protected] wrote:

I think B is good

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/KevinOConnor/klipper/issues/652#issuecomment-423363534, or mute the thread https://github.com/notifications/unsubscribe-auth/AVO4IwMOgSR_KQacDWujpHp5uUTtesXCks5udCD4gaJpZM4Wqg26 .

tonhozi avatar Sep 21 '18 00:09 tonhozi

As much as I like it, I would vote against "B", as the running person figure matches very closely to the international signage for "emergency exit". https://en.wikipedia.org/wiki/Exit_sign

On a touchscreen in particular, if common symbology is retained, this could lead to a user misinterpreting this symbol as an emergency stop button, perhaps with disastrous effects in time of need.

My personal favorite would be the original chevron pattern. :)

dstulken avatar Sep 21 '18 03:09 dstulken

I will post more FR variants soon. Really tricky icon to design, as for me. What is feed rate physically? The speed (or ratio?) of filament feeding through the nozzle plus the speed of printer’s kinematics? So what this feed rate (or feedrate?) really is? More like a speed or a ratio? What ‘meaning’ do we need to represent in FR icon?

alfsoft avatar Sep 21 '18 03:09 alfsoft

B looks fine. If you need to make more variants then maybe something like fast-forward icon.

mcmatrix avatar Sep 21 '18 08:09 mcmatrix