Changeset 11596:c84e54594473 in orange


Ignore:
Timestamp:
06/13/13 19:08:40 (10 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Set the canvas style sheet on the CanvasMainWindow only.

This prevents any accidental/unwanted styling of other widgets (OWWidget).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/main.py

    r11535 r11596  
    181181                log.info("%r style sheet not found.", stylesheet) 
    182182 
    183     if stylesheet_string is not None: 
    184         app.setStyleSheet(stylesheet_string) 
    185  
    186183    # Add the default canvas_icons search path 
    187184    dirpath = os.path.abspath(os.path.dirname(OrangeCanvas.__file__)) 
     
    189186 
    190187    canvas_window = CanvasMainWindow() 
     188 
     189    if stylesheet_string is not None: 
     190        canvas_window.setStyleSheet(stylesheet_string) 
    191191 
    192192    if not options.force_discovery: 
Note: See TracChangeset for help on using the changeset viewer.