1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-23 07:40:05 +02:00

28 Commits

Author SHA1 Message Date
James Crook
81dd2befab Translucent background to track name (all platforms)
wxDC can draw translucently, if given a bitmap.  So we now create a suitable bitmap, using a wxGraphicsContext.
2019-04-06 17:16:54 +01:00
Paul Licameli
c982cf6a41 Remove wx/intl.h, wx/brush.h, wx/bitmap.h from headers 2019-03-30 11:45:20 -04:00
Paul Licameli
ec2f26e48c Remove wx/pen.h, wx/thread.h from headers 2019-03-30 10:17:18 -04:00
James Crook
8b9518a90a Translucent background to track name (on Mac)
Mac only, as mac supports translucent brushes by default.
wxWidgets makes using a wxDC and wxGraphicContext at the same time
complex and slow.  Hence just for mac.
2019-03-29 22:11:59 +00:00
Paul Licameli
e6324e86ac Fix cross-platform one-pixel differences in line drawing...
... Make all line drawing go through our AColor which wraps the wxDC
line-drawing functions.

Despite what wxWidgets documentation says, the functions still don't
consistently include the first point and omit the last point of a line.  I
observed inclusion of both on Mac, while on Windows, omission sometimes of the
first point instead of the last.

Discrepancies could be observed in 2.3.0 between Windows and Mac, using the
Window magnifier or command+alt+ +, zooming in closely on the ends of the
shadow lines below and right of tracks, or at the bottom-right corners of the
bevels drawn around vertical rulers.

So where there is an observable one-pixel difference of drawing between
platforms, there is the question, which was the intent when the drawing code
was written?  Should the coordinates be corrected by one or not?

I reviewed each case and used my judgment.

Most of the calls are in drawing rulers.  Major tick lines were drawn five
pixels long, and minor, three, on Mac.  I keep this behavior, but you might
argue for making them four and two.

On the other hand the drawing of ruler grid lines, which you can see in
the equalization and frequency analysis windows, did need a one-pixel correction
to avoid straying out of bounds.
2019-03-16 07:51:28 -04:00
James Crook
a49f14ad02 doxygen. Class list completed for letter 'A'. 2017-11-09 18:32:29 +00:00
James Crook
de0cc3ecff Bug 1699 - Selected keyboard prefs line unreadable in 3 of 4 themes on Mac
The focus rect in key prefs is not very helpful.  It was setting the background colour too,
but that is now using system colours again.
2017-07-22 11:08:15 +01:00
Pokechu22
437de15098 Add more method and field documentation
Mostly for MIDI-specific areas, and general AudioIO fields.
2017-07-16 11:07:28 -04:00
Paul Licameli
c4fe4993b3 Utilities for TrackPanel highlighting 2017-07-11 13:22:19 -04:00
Paul Licameli
2475b1554b Support for TCP button highlighting 2017-07-09 12:34:28 -04:00
James Crook
5e28e3fe6d Line to mark off scrub ruler.
Provides a clear boundary between scrub ruler and quick select ruler, even if the theme colours have been warped to be very similar.
Thanks to Gale for spotting this problem on Mac.
2017-04-30 17:22:20 +01:00
James Crook
8ad2e599ab Tweak Theming. Reticules, Down buttons; Selected buttons. 2017-04-06 20:44:24 +01:00
Darrell Walisser
8e1b084f01 OpenMP TrackArtist::DrawSpectrum (#165)
- make 2nd loop parallelizable
- remove number scale from both loops, only calculate one time
- initialize Acolor::GetColorGradient separately
2016-09-20 07:15:18 -04:00
James Crook
545d741eb2 Make Audacity source more like DarkAudacity source. 2016-09-11 13:03:37 +01:00
Paul Licameli
9649e0bfe2 The ruler cursor (short vertical stroke at selection) should not change color...
... during play or record.

That bug was introduced at b19ed258e963c9342f0a573a3f054d9a8336f7fa
2016-05-03 09:58:31 -04:00
Paul Licameli
055c33459c Draw the Quick Pay and Scub Bar pushbuttons 2016-04-30 22:48:54 -04:00
Leland Lucius
3064f1715f Better tooltip for ASlider
This fixes the problem on GTK where the text was unreadable when
using a "dark" theme.

And fixes the double display of the real tooltip and the tip panel
being displayed at the same time on GTK and OSX.  It seems that
the "disabling/reenabling" of tooltips doesn't take affect right
away anymore...maybe it never did.
2015-08-09 06:03:42 -05:00
james.k.crook@gmail.com
3d7dd6c74a Draw dotted lines on frequency selection.
Patch from Paul Licameli, but simplified.
2014-10-22 21:06:15 +00:00
james.k.crook@gmail.com
37608c2290 Paul Licameli's Spectral Editing Patch.
This relies on three new nyquist scripts to actually do the editing.  The peak-snapping code in FrequencyWindow has been extracted into a new class, SpectrumAnalyst, to provide peak-snapping in spectrogram too.
2014-10-18 14:19:38 +00:00
benjamin.drung@gmail.com
277932dccb Remove trailing spaces. 2014-06-03 20:30:19 +00:00
martynshaw99
4ce2643d5f Remove the
// Indentation settings for Vim and Emacs
etc. lines from all files, as Campbell's patch (except for other changes to Languages.cpp)
2013-09-24 00:14:37 +00:00
clayton.otey
71dedc3d35 Revert r11214 (sbsms timescale effect update) & r11215 (mixed-radix-fft narrow/broaden spectrum menu items) to honor the feature freeze. 2011-07-06 09:49:59 +00:00
clayton.otey
df9865f26a Added an sse enabled mixed-radix-fft implementation and a menu/view/{narrow,broaden} spectrum item which adjusts the spectrogram window size 2011-07-02 18:42:38 +00:00
BusinessmanProgrammerSteve
c0b5fb01da Performance improvements for track spectrum display and PCM
import submitted by Sami Liedes.
2010-09-13 01:31:54 +00:00
v.audacity
209a2b193d Consolidate multiple names for the same feature: sticky/linked/sync/synchro/grouped -> sync-lock. 2010-08-11 22:47:26 +00:00
BusinessmanProgrammerSteve
b9fce94477 Implements darkchains_mod2a style linking indication. This may not be
final but it's a big improvement. Reversed a couple changes from
original indication scheme that are no longer necessary. Unfortunately
it's really hard to remove colors from AllThemeResources.h.
2010-03-09 04:59:26 +00:00
businessmanprogrammersteve
5a6b7a4ec9 Lighten colors slightly for sync-selection. 2010-02-17 17:54:32 +00:00
ra
e74978ba77 Locate and position the current Audacity source code, and clear a variety of old junk out of the way into junk-branches 2010-01-23 19:44:49 +00:00