The International Simutrans Forum

Development => Bug Reports => Topic started by: An_dz on May 20, 2018, 09:43:32 PM

Title: [r8447] Focus code is broken
Post by: An_dz on May 20, 2018, 09:43:32 PM
As I'm doing the new theme I noticed that the focus code is broken.

Steps 1

Expected
The scrollbar skin changes.

Actual
The scrollbar skin remains the same.


Steps 2

Expected
The selection colours change when the other window has the focus.

Actual
The selection remains with the same colours.
Title: Re: [r8447] Focus code is broken
Post by: Dwachs on May 28, 2018, 06:26:55 PM
I do not understand. Why would you expect the selection colour to change when out of focus?
Title: Re: [r8447] Focus code is broken
Post by: An_dz on May 28, 2018, 06:35:28 PM
Mostly because it used to, even before the theme patch.
Title: Re: [r8447] Focus code is broken
Post by: Dwachs on May 28, 2018, 08:35:01 PM
I tried to fix it in r4781. Now the list is focusable again and can be navigated by arrow keys.
Title: Re: [r8447] Focus code is broken
Post by: An_dz on May 29, 2018, 07:41:57 PM
Cool. But the list focus is strange as when you open the window I can't move it as it moves the map and when I put focus on it I can't lose it to move the map.