klayout icon indicating copy to clipboard operation
klayout copied to clipboard

Add possibility to customize main window title

Open EugeneZelenko opened this issue 1 year ago • 2 comments

Hi, Matthias!

It'll be great to have possibility to customize main window title using command line option or environment variable. Motivation for this feature came from application that uses KLayout as viewer and could launch multiple KLayout sessions, so it's hard to distinguish between different applications in task bar.

EugeneZelenko avatar Jan 04 '24 01:01 EugeneZelenko

I'd propose a new attribute of the MainWindow class which allows configuring the window title.

Currently, you can configure the layout view names differently by using something like:

pya.LayoutView.current().title = "ABC"

this will show up in the main window title like this:

image

So that is a way to customize at least the back part of the title.

Matthias

klayoutmatthias avatar Jan 05 '24 15:01 klayoutmatthias

Hi, Matthias!

Sure, this will work! Title could be set in startup script (-rm) or synchronized in more complex scenarios like socket/pipe monitoring.

EugeneZelenko avatar Jan 05 '24 18:01 EugeneZelenko

Hi, Matthias!

Thank you for enhancement!

EugeneZelenko avatar Mar 29 '24 13:03 EugeneZelenko