Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix heights of the time line in Automation Editor and Piano Roll
The height of the time line in the Automation Editor and Piano Roll was
larger than the height in the Song Editor. This is fixed by specifying
the max-height in the stylesheet as well. Also the font-size is now
given in pt and the widget height in em so that the height of the whole
widget will always scale proportional to the given height of the font.
  • Loading branch information
michaelgregorius committed Jun 4, 2016
commit 38ff02f54adaed342dc331cc7e0d1d567128a90e
11 changes: 9 additions & 2 deletions data/themes/default/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,15 @@ TimeLine {
}

TimeLineWidget {
font-size: 1em;
min-height: 1.25em;
/* font-size only supports px and pt. */
font-size: 7pt;
/* lengths also support em. This will make sure that the height
will always change in the same proportion as the font size
defined above.
If you want a fixed size set min and max to the same value. */
min-height: 1.5em;
max-height: 1.5em;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You want to add this here:

    background-color: qlineargradient( x1: 0, y1: 0, x2: 0, y2: 1,
                        stop: 0 #8796a7, stop: 1.0 #3e454e );

to reinstate the old look.

Also, shouldn't

TimeLine {
    font-size: 8px;
}

be removed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have reinstated the old look. I have to admit that I like the flat look better but that's something for theme designers I guess. :)

I have also removed the TimeLine entry from the style.css.

qproperty-inactiveLoopColor: rgba( 255, 255, 255, 32 );
qproperty-activeLoopColor: rgba( 255, 255, 255, 64 );
qproperty-barLineColor: rgb( 192, 192, 192 );
Expand Down