aliens

Author Topic: [Suggestion] Align numbers right in lists  (Read 737 times)

Offline Alpha Centauri Bear

  • Colonel
  • ****
  • Posts: 466
    • View Profile
[Suggestion] Align numbers right in lists
« on: December 16, 2023, 03:41:38 am »
In my recent exploration I noticed OXCE has a very neat "align right" option for list columns.
Having that feature, I am quite surprised numbers in lists are not right aligned everywhere. I can take on this modification and submit PR if you like.

Lists without dots are exceptionally easy to align. Just set alignment for number column.

Lists with connected dots are also easy as long as one color is used for all list columns. Dot extension already account for column alignment.

The only slightly difficult case is list with dots and different column colors. In this case dots also will be different color depending on which column they belong to. I can enhance the code to make dots same color (or specific color) or just not extend them to numeric fields. OR just leave it as is. Will look slightly ugly but that's fine.



Another related change is to make all numbers equal width for perfect alignment. Currently, number "1" is three pixels wile but others are four. Would probably make sense to redraw "1" slightly wider without changing the shape much. I already have my own font file with such change. May submit a PR on that too.
« Last Edit: December 16, 2023, 03:43:33 am by Alpha Centauri Bear »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8851
    • View Profile
Re: Align numbers right in lists
« Reply #1 on: December 16, 2023, 10:21:21 am »
No, I like the GUIs as they are.

Nobody complained about it in 30 years now, there is no demand for it.
(and many xcom fans will be strictly against it)

Offline Alpha Centauri Bear

  • Colonel
  • ****
  • Posts: 466
    • View Profile
Re: [Suggestion] Align numbers right in lists
« Reply #2 on: December 16, 2023, 06:18:47 pm »
😃
Was worth asking.