Menu

#697 Pane headline missing using the Windows classic theme

3.1
closed-fixed
Yu Tang
None
5
2014-08-13
2014-07-28
eraser
No

Only the focused window show the headline, while the others don't.

Using Windows 7 with OmegaT 3.1.3

1 Attachments

Related

Bugs: #697

Discussion

1 2 > >> (Page 1 of 2)
  • Didier Briel

    Didier Briel - 2014-07-28
    • summary: Window headline missing --> Pane headline missing
     
  • Didier Briel

    Didier Briel - 2014-07-28

    What you are showing are panes, not windows. I have corrected the title accordingly. I do not reproduce the issue. Does it still happen if you use Options > Restore Main Window?

    Didier

     
  • eraser

    eraser - 2014-07-29

    Even restarting OmegaT and using the Restore Main Window function doesn't change anything. Only the focussed pane shows the headline.

    On the same machine, OmegaT 2.6.3_6 does not show this behavior.

     
  • Sergei Tsypanov

    Sergei Tsypanov - 2014-07-29

    It seams it's due to migration onto vldocking-3.0.4. This issue is about Laf. If you set for instance Nimbus as application's Laf the text is be OK.

     
    • Didier Briel

      Didier Briel - 2014-07-29

      Does your comment apply to Windows? (The OP wrote the issue was under Windows 7.)

      Didier

       
  • Didier Briel

    Didier Briel - 2014-07-29

    It seems it's due to migration onto vldocking-3.0.4.

    Possibly (thanks Sergei).
    I see in your screenshots that you are not using Windows 7 "standard" look and feel. Does the issue happen if you do?

    Didier

     
  • Sergei Tsypanov

    Sergei Tsypanov - 2014-07-29

    I also use Windows 7. At home I checked the application on Windows XP. It's the same. So, behaviour is the same for both OSs. That's why I suppose the issue is about LaF.

     
    • Didier Briel

      Didier Briel - 2014-07-29

      To the original poster: what version of Java are you using?

      Didier

       
    • Didier Briel

      Didier Briel - 2014-07-30

      With the Windows Classic theme, I tried to force the Nimbus look and feel with -Dswing.defaultlaf=javax.swing.plaf.nimbus.NimbusLookAndFeel, but it didn't solve the issue.

      Didier

       
      • Sergei Tsypanov

        Sergei Tsypanov - 2014-07-30

        You can try to set it manually in org.omegat.Main by replacing
        UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName())

        with

        UIManager.setLookAndFeel("javax.swing.plaf.nimbus.NimbusLookAndFeel");

        P.S. Did you try to set Nimbus by adding

        -Dswing.defaultlaf=javax.swing.plaf.nimbus.NimbusLookAndFeel

        as a program argument? I'm asking because in IDEA it works.

         

        Last edit: Sergei Tsypanov 2014-07-30
        • Didier Briel

          Didier Briel - 2014-08-01

          UIManager.setLookAndFeel("javax.swing.plaf.nimbus.NimbusLookAndFeel");

          It works, but the result is not the normal look of OmegaT.

          -Dswing.defaultlaf=javax.swing.plaf.nimbus.NimbusLookAndFeel

          That's what I wrote: it doesn't work, either on the command line or in OmegaT.l4J.ini.

          Didier

           
  • eraser

    eraser - 2014-07-29

    JRE 1.7.0_45-b18

     
  • Yu Tang

    Yu Tang - 2014-07-29

    I have reproduced this issue.
    I changed my Win7 desktop theme to Windows Classic.
    http://windows.microsoft.com/en-US/windows-vista/change-windows-to-classic-view

     
    • Yu Tang

      Yu Tang - 2014-07-29

      ... And OmegaT 3.1.0 does not have this issue.
      JRE 1.7.0_51

       
    • Didier Briel

      Didier Briel - 2014-07-30

      Thanks, I can reproduce the issue with the Windows Classic theme. I have updated the title accordingly. I don't see any exception in the log.

      Didier

       
  • Didier Briel

    Didier Briel - 2014-07-30
    • summary: Pane headline missing --> Pane headline missing using the Windows classic them
     
  • Sergei Tsypanov

    Sergei Tsypanov - 2014-07-30

    Here is the patch for org.omegat.util.gui.DockingUI.ava

    It sets title foreground color and makes it visible.

     
  • Didier Briel

    Didier Briel - 2014-08-01

    Thank you but, in that patch, you are hard-coding the window colours.

    That's not an acceptable solution.

    Didier

     
  • Didier Briel

    Didier Briel - 2014-08-01
    • summary: Pane headline missing using the Windows classic them --> Pane headline missing using the Windows classic theme
     
    • Sergei Tsypanov

      Sergei Tsypanov - 2014-08-02

      This line fixes the issue without hardcoding.

      UIManager.put("InternalFrame.inactiveTitleForeground", UIManager.getLookAndFeelDefaults().get("windowText"));

      01.08.2014, 16:57, "Didier Briel" didierbr@users.sf.net:

      • summary: Pane headline missing using the Windows classic them --> Pane headline missing using the Windows classic theme

      [bugs:#697] Pane headline missing using the Windows classic theme

      Status: open
      Group: 3.1
      Created: Mon Jul 28, 2014 08:30 PM UTC by eraser
      Last Updated: Fri Aug 01, 2014 01:54 PM UTC
      Owner: nobody

      Only the focused window show the headline, while the others don't.

      Using Windows 7 with OmegaT 3.1.3


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/omegat/bugs/697/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #697

  • Didier Briel

    Didier Briel - 2014-08-03
    • assigned_to: Yu Tang
     
  • Didier Briel

    Didier Briel - 2014-08-03

    This line fixes the issue without hardcoding.

    UIManager.put("InternalFrame.inactiveTitleForeground", >UIManager.getLookAndFeelDefaults().get("windowText"));

    Thank you.
    However, Yu Tang is working on something more complex, which will only change the title if the colour is the same for the foreground and the background.

    Didier

     
  • Didier Briel

    Didier Briel - 2014-08-03

    Fixed in SVN (/trunk).

    The colours will only be changed if the background and foreground colour are the same. If that happens, the text colour is made brighter or darker for readability.

    Didier

     
  • Didier Briel

    Didier Briel - 2014-08-03
    • status: open --> open-fixed
     
  • Didier Briel

    Didier Briel - 2014-08-13
    • status: open-fixed --> closed-fixed
     
1 2 > >> (Page 1 of 2)

Log in to post a comment.