1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-11 22:24:13 +01:00
Commit Graph

7167 Commits

Author SHA1 Message Date
Thomas L. Kjeldsen
b4e5a8f7de Run tests with an X virtual framebuffer (1024x768)
The GitHub-hosted runner is a virtual machine hosted by GitHub.

Xvfb on that setup defaults to a virtual screen size of 640x480
(XVFBARGS='-screen 0 640x480x16') which in turn makes the Arduino user
interface tests fail with exceptions like this:

    [junit] org.fest.swing.exception.ActionFailedException: The component to click is out of the boundaries of the screen
    [junit] 	at org.fest.swing.exception.ActionFailedException.actionFailure(ActionFailedException.java:33)
    [junit] 	at org.fest.swing.core.RobotEventGenerator.pressMouse(RobotEventGenerator.java:74)

Setting the xvfb screen size to 1024x768 solves this error.
2020-01-31 12:52:27 +01:00
Thomas L. Kjeldsen
ab8471d562 Don't require user interaction when building the dist target 2020-01-31 12:52:19 +01:00
Thomas L. Kjeldsen
c630dc0b92 Build and run tests on GitHub-hosted runners
A GitHub-hosted runner is a virtual machine hosted by GitHub with the GitHub
Actions runner application installed.
2020-01-31 12:52:10 +01:00
Cristian Maglie
0dbff59b13 Release 1.8.11 2020-01-27 17:52:12 +01:00
jenkins
2d4f8f011b update arduino-builder to 1.5.1 2020-01-23 19:13:57 +01:00
Cristian Maglie
d74e0f5b77 Updated some bundled libraries
SpacebrewYun 1.0.2
SD 1.2.4
Servo 1.1.6
Adafruit_CircuitPlayground 1.10.4
2020-01-23 10:32:26 +01:00
Cristian Maglie
ab864cfa09 Updated revision log 2020-01-22 17:23:55 +01:00
Cristian Maglie
113c56d657 Even stricter sanity checks 2020-01-21 14:39:02 +01:00
Cristian Maglie
b811689e97 Improved sanity checks on filenames in package_index.json 2020-01-21 14:39:02 +01:00
PaulStoffregen
0f5d22c67c Allow Pluggable Discovery recipes to use {runtime.platform.path} 2020-01-21 11:35:18 +01:00
Cristian Maglie
ff26dd58f8 Updated translations from transifex 2020-01-20 15:59:26 +01:00
Maged Ahmed Rifaat
586e7d5fe8 Fix wrong bracket match rectangle on auto format
This commit fixes instances when setText is called on editorTab and the rectangle that highlights the bracket match becomes incorrect.
This is because text is inserted to the document without notifying the textarea.
Calling setLineWrap internally fires an event that recalculates the bracket match rectangle and thus solves the problem.
2020-01-20 12:41:58 +01:00
Cristian Maglie
0dde85e417 Removed reference for retired Edison and Galileo boards 2020-01-16 09:31:57 +01:00
Luigi
5c8c3538ee Changing URLs from HTTP to HTTPS
I have changed the URLs from `http` to `httpst`. In particular the page `latest.txt` can be reached on both port 80 and port 443.
2020-01-08 11:42:16 +01:00
Cristian Maglie
b029b2a0e1 macosx notarization: fixed build for non-mac targets 2020-01-08 11:41:34 +01:00
Cristian Maglie
76699fd464 macosx notarization: signed appbundler 2020-01-08 11:41:34 +01:00
Cristian Maglie
ac80175723 macosx notarization: signed arduino-builder and tools 2020-01-08 11:41:34 +01:00
Cristian Maglie
e3c7eb4a49 macosx notarization: removed old avr-gcc and avrdude 2020-01-08 11:41:34 +01:00
Cristian Maglie
495f35683f macosx notarization: signed liblistSerials 2020-01-08 11:41:34 +01:00
Cristian Maglie
235b60b4b8 macosx notarization: signed arduinoOTA 2020-01-08 11:41:34 +01:00
Cristian Maglie
7230f09860 macosx notarization: signed libjtouchbar 2020-01-08 11:41:34 +01:00
Cristian Maglie
b1c3493a91 macosx notarization: rebuild of libastyle 2020-01-08 11:41:34 +01:00
Cristian Maglie
443650279c macosx notarization: added signed avr* tool and some entitlements 2020-01-08 11:41:34 +01:00
Martino Facchin
054562f754
Merge pull request #9552 from sandeepmistry/wifi101-updater-v0.10.10
Update WiFi101-Updater plugin to 0.10.10
2019-12-30 09:56:49 +01:00
Sandeep Mistry
7ec0f833f6 Update WiFi101-Updater plugin to 0.10.10 2019-12-23 13:57:29 -05:00
Cristian Maglie
4ae4de9a2f Updated package_index_bundled 2019-12-09 13:03:58 +01:00
Cristian Maglie
3af345fb74 Updated avr core to 1.8.2 2019-12-02 16:44:27 +01:00
jenkins
9debb768a8 update arduino-builder to 1.5.0 2019-11-11 15:24:26 +01:00
Maxwell Paul Brickner
71597e7b87 Updated links to use https when possible.
Updated links in readme to use https instead of http when possible.
2019-10-29 10:20:45 +01:00
Kelvin Ly
5fecda7dee Add serial input text field to plotter 2019-10-29 10:19:54 +01:00
Matthijs Kooijman
93581b03d7 Set foreground color in library/board manager
Previously, only the background color was changed to white or light
grey. This worked well for the default theme with a black or dark text,
but not for a dark theme with white or light text.

This commit fixes this by also overriding the text color to be black.
Since the colors are set on the JPanel table cell, but the actual text
is rendered by the description JTextPane, the `setForeground` method is
overridden to forward the foreground color to the description pane.

Note that this commit only touches the table cell and description
inside, the dropdowns and buttons have neither background nor foreground
color set (thus these use both colors from the system theme). It might
be more consistent to also override these, but such native UI components
are typically tricky to colorize properly, so best let the system handle
that normally.

An alternative solution would be only use the default colors, which
would actually preserve the dark theme colors in these managers as well
(rather than forcing black-on-white/grey as now). There are default
colors for selected and non-selected table cells that could be used, but
these are different from the current colors. Additionally, the current
odd/even alternating colors are then also no longer available.
2019-10-16 17:30:40 +02:00
Matthijs Kooijman
7d625181f6 In the board/library manager, create the description component only once
Previously,`makeNewDescription` was called in the constructor and then
again later in the `update` method (board manager) or later in the
constructor (library manager) to recreate the description JTextPane so
it can be filled with text. In all cases, the pane would be created
equal, so there is no point in recreating it.

Now, it is created only once and stored in an instance variable for
later reference. Additionally, `makeNewDescription` now only creates the
JTextPane, the constructor handles adding it (like for other
components).

This change slightly simplifies code, but also prepares for allowing
to change the description text color externally in a later commit.

For the library manager it is not currently strictly needed to have an
instance variable (since the description is only used inside the
constructor), but the instance variable is added for consistency and to
prepare for this same upcoming change.
2019-10-16 17:30:40 +02:00
Matthijs Kooijman
778f681c2f Remove unneeded color-setting code in the boards and library manager
Previously, for the boards manager:
 - InstallerJDialog would set the "selection background" color on the
   table, using the "status.notice.bgcolor" the color (default blueish
   green). This color is not used directly, but made available for cell
   renderers to use.
   a1448876a1/app/src/cc/arduino/contributions/ui/InstallerJDialog.java (L183)
 - For each cell, either a ContributedPlatformTableCellEditor or
   ContributedPlatformTableCellRenderer is used, depending on whether
   the cell is being edited (i.e. when selected).
 - Both of these create a ContributedPlatformTableCellJPanel, and call
   its `update` method, which creates the components for the cell.
 - The `update` method als sets the background color of the description
   to white, which does not actually have any effect because the
   description is not opaque.
   a1448876a1/app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCellJPanel.java (L271)
   a1448876a1/app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCellJPanel.java (L309)
   https://docs.oracle.com/javase/7/docs/api/javax/swing/JComponent.html#setBackground(java.awt.Color)
 - The `update` method also sets its colors of itself (JPanel) to the FG
   and BG color, or the selected FG and BG color of the table depending
   on the selected status of the cell. These seem to default to black on
   white for non-selected and white on blue-ish for selected cells.
   However, InstallJDialog has replaced the selected BG with a blueish
   green, as shown above.
   Of these, only the BG colors actually seem to take effect. The fg
   color of the description component is actually used (default black).
   a1448876a1/app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCellJPanel.java (L282-L288)
 - After calling `update`, ContributedPlatformTableCellEditor overrides
   the JPanel background color with a fixed grey color. Similarly,
   ContributedPlatformTableCellRenderer sets an alternating white and
   (slightly lighter) grey background color. Together, this means that
   the background color set by ContributedPlatformTableCellJPanel is
   never actually used.
   a1448876a1/app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCellEditor.java (L132-L133)
   a1448876a1/app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCellRenderer.java (L47-L53)

For the library manager, pretty much the same happens.

Effectively, the only colors that were actually used were the background
colors set by ContributedPlatformTableCellEditor and
ContributedPlatformTableCellRenderer. This is problematic because:
 - There is a lot of other confusing and unused code
 - The foreground color is never set. This is fine when it is black or
   another dark color, but when the system is configured with a dark
   theme, the default foreground color will be white, which is
   problematic on a white background.

This commit remove the unneeded code, setting the foreground color
is left for later. It also removes the (now unused) `isSelected` from
`ContributedPlatformTableCellJPanel::update`. For the library manager,
the corresponding argument is still used to decide the "author" color.
2019-10-16 17:30:40 +02:00
Martino Facchin
b4bcb304a3
Merge pull request #9262 from joew46167/master
Add titles to rows in the manager tables
2019-10-14 11:17:56 +02:00
jenkins
923a75c704 update arduino-builder to 1.4.9 2019-10-11 11:10:29 +02:00
Martino Facchin
0d9de02253
Merge pull request #9291 from arduino/fix-arduino-linux-setup-shebang
Moving shebang at the top of the file
2019-10-10 09:20:05 +02:00
Edoardo T
9951c65248
moving shebang at the top of the file
Shebang changes how Unix-like OS run scripts, ensuring the script is run with the specified interpreter. In this case as the line was not the first in the file, users without bash as their default shell would experience issues running the script.

Fixes #9281
More details on shebang usage here https://en.wikipedia.org/wiki/Shebang_(Unix)
2019-10-07 09:48:53 +02:00
Joe Wegner
227bae4f6d Remove the board name from the cell, only in the title. 2019-10-01 08:06:41 -04:00
jenkins
a1448876a1 update arduino-builder to 1.4.8 2019-09-30 09:58:44 +02:00
Joe Wegner
b9265a42b1 Add boarders to the teble items so screen readers will read while walking through the table 2019-09-27 10:29:19 -04:00
Joe Wegner
09e420245b Merge remote-tracking branch 'upstream/master' 2019-09-27 09:42:56 -04:00
Martino Facchin
6116a8e920 Starting 1.8.11 2019-09-19 12:54:30 +02:00
Martino Facchin
2b4242929c Linux: quote install script paths
Fixes #9217
2019-09-19 12:51:42 +02:00
Sandeep Mistry
8f0237531f Serial Plotter: Don't try to parse line containing only trimmable characters 2019-09-18 14:10:38 -04:00
Joe Wegner
52c0f6ec60 Add a TitledBorder to panels in bord manager. This really helps the screen reader users. 2019-09-18 09:47:54 -04:00
Frank Lyder Bredland
b551bf55ba Enhance readme for readability 2019-09-17 15:50:57 +02:00
45gfg9
749beb6532 Fix a typo
buidler -> builder
2019-09-16 13:14:34 -04:00
Iván Pérez
c43266964b UpdateCheck microoptimization
No need to create a `Random` object and get a random ID from it if then it's overwritten with the stored value.
2019-09-16 11:42:43 +02:00
Gianluca Varisco
2e596c6eff Update appdata.xml to 1.8.10 release 2019-09-16 11:30:46 +02:00
Cristian Maglie
741026ade1 Update revision log 2019-09-13 12:21:47 +02:00