1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-22 15:20:15 +02:00

54 Commits

Author SHA1 Message Date
Paul Licameli
fa4d35296e AllThemeResources.h has a .cpp & doesnt include Theme.h...
... (it used to, via MacroMagic)

This splits a cycle of 8 into 6 + 1 + 1
2020-05-28 05:50:24 -04:00
James Crook
76d52fdc99 Make Bevel2 widget antialiased
Hat tip to Jonatã Bolzan.
2019-09-05 13:02:31 +01:00
Paul Licameli
3a1456bf53 Make OverlayPanel independent of AColor 2019-07-13 16:08:29 -04:00
Paul Licameli
6c57948d8f Remove unnecessary #include-s from .cpp files...
... Unnecessary because transitively included.

But each .cpp file still includes its own .h file near the top to ensure
that it compiles indenendently, even if it is reincluded transitively later.
2019-05-16 17:21:00 -04:00
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
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
5e7d41ec07 Each .cpp/.mm file includes corresponding header before any other...
... except Audacity.h

This forces us to make each header contain all forward declarations or nested
headers that it requires, rather than depend on context.
2019-03-17 22:54:52 -04:00
Paul Licameli
906e55f047 Experimental.h in all .h or .cpp files that directly use EXPERIMENTALs...
... except Audacity.h; and in no others.

Do so even if Experimental.h gets multiply included, as in both the .h and
.cpp files.

This makes it easier to do a text scan to be sure there are no unintended quiet
changes of meaning because of omission of Experimental.h when the flag is
an enabled one.

Also move inclusions of Experimental.h earlier.

Also don't require Experimental.h to be preceded by Audacity.h to define
EXPERIMENTAL_MIDI_OUT correctly.
2019-03-17 22:54:00 -04:00
Paul Licameli
173a300427 Include nothing before Audacity.h, as comments say we should...
... and remove some duplicated inclusions
2019-03-17 21:41:39 -04: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
Paul Licameli
3e1d4a962d Fix drawing of lower right corners of vertical rulers 2018-11-02 16:51:07 -04:00
Paul Licameli
e432883dec Fix deprecation warnings with wxFont, wxPen, wxBrush ctors...
... Replace some enum constants with the equivalent values from the more
special-purpose enums, as the wx header files recommend, so overloading
selects the ctors with non-int arguments.

In a full rebuild of the debug project on Mac, this reduces the count of
warnings from 264 to 274.
2018-07-23 13:21:15 -04:00
James Crook
dc05b94fd1 Bug 1701 - Mac: Text descriptors in Selection Toolbar become invisible after Open command
Problem was that on mac enable/disable clears the colour back to black.
The easiest workaround was to create a new class auStaticText that does all that we
need for wxStaticText.
2017-08-13 23:04:13 +01:00
James Crook
cc46833125 Fix regression, loss of distinct colour in Scrub Ruler
Wrong conditional test for "no colours set".
2017-07-22 17:07:55 +01: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
James Crook
60405eb7fe Theme Tweaks
- Highlighting of Buttons in TCP and Sliders
- No crinkly Help Icon anymore
- Invisible numbers in NoteTrack fixed
- Better visibility of label track dragger elements
- Theme rearranged more logically, and dead images culled
2017-07-19 15:27:00 +01:00
Paul Licameli
c4995efed8 TCP buttons can distinguish up and down highlight backgrounds...
... But make them nondistinct in all themes, so this commit does not yet make
user visible changes.

This uses the HiliteButtonExpandSel resource which was previously unused.
Perhaps not the intended use of the resource so named, but names can change in
2.2.1.

The two were already alike in Classic but the unused one had been just black
in the others.
2017-07-17 22:09:56 -04: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
James Crook
7d968586af Back to a dark colour for cursor on Light and Classic.
This could also have been achieved by tweaking the colours in each of the themes.
2017-07-11 15:07:11 +01:00
Paul Licameli
2475b1554b Support for TCP button highlighting 2017-07-09 12:34:28 -04:00
James Crook
fb26ee9e80 wxCOPY rather than wxINVERT for cursor. 2017-07-02 15:31:04 +01:00
James Crook
c38b8c857f Use same cursor colour on Mac/Linux as on Win. 2017-06-30 21:59:11 +01:00
James Crook
d7218938ed Set colours in AColour on all platforms.
Also drop AQUA_THEME on meters.
These changes are important on MixerBoard.
2017-06-22 15:41:12 +01:00
James Crook
b24560a134 Completion of FocusRect fix.
Fix is needed on Mac too.
2017-06-16 15:37:06 +01:00
James Crook
d2187b42cc Make FocusRect visible on Dark Themes.
Now uses clrTrackPanelText for the focus rect dots.
2017-06-16 14:50:50 +01:00
James Crook
78135d25fd Use blue for negative Numbers
The time ruler previously used blue for negative numbers, when scrolling left of zero was enabled.  This was broken by adding the dark-theme code.  Fixed now, and with a new configurable colour for it which defaults to blue if non provided.
2017-05-03 16:11:05 +01: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
47c6ac3233 Theme the spectrogram. 2017-04-27 21:40:16 +01:00
James Crook
8ad2e599ab Tweak Theming. Reticules, Down buttons; Selected buttons. 2017-04-06 20:44:24 +01:00
James Crook
028ed19d90 Sync with DarkAudacity 2017-04-02 23:07:13 +01:00
Paul Licameli
f993f1eadf Regularize casts as (int), so they are easier to find and review 2016-09-20 08:42:11 -04:00
James Crook
545d741eb2 Make Audacity source more like DarkAudacity source. 2016-09-11 13:03:37 +01:00
Paul Licameli
fe509ed412 Fix drawing of focus rectangles in buttons, meters, sliders on Mac 2016-06-25 16:08:37 -04: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
Paul Licameli
7c4c45a0d5 "new"->"NEW" in comments, easier to find remaining naked operator new 2016-02-14 18:52:41 -05:00
Paul Licameli
bae6a95e15 Martyn's suggested rotation of rgb values for spectral selection 2015-09-01 02:30:32 -04:00
Leland Lucius
ae47b4f3ef Bring back the inverted cursor for wxGTK3 built against GTK2 2015-08-24 15:32:04 -05:00
Leland Lucius
6a9dae20f5 Appearance on OSX is now back to normal or better
Some additional wx3 cleanup as well.
2015-08-23 20:25:01 -05: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
f8732c96dc Frequency selected part of spectrum is now yellowish. Was too dark previously. 2014-11-17 19:39:20 +00:00
james.k.crook@gmail.com
421bc76856 Fix my regression in previous patch: Edges on grayscale should be white, not black. 2014-10-22 22:45:29 +00: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
57544635f9 Changed colours for spectral selection per Steve's suggestion. 2014-10-22 18:46:42 +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
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
f28d91a599 Consolidate multiple names for the same feature: sticky/linked/sync/synchro/grouped -> sync-lock. 2010-08-11 23:15:00 +00:00