Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
setvisible committed Jan 7, 2024
2 parents 212b4e8 + feb93f3 commit c671c0f
Show file tree
Hide file tree
Showing 87 changed files with 808 additions and 838 deletions.
44 changes: 12 additions & 32 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ Compiler default is C++11 (eventually C99 for C parts)
Here's the software you'll need before you start building (mandatory in bold)

- **Standard C++ Library** (>= C++11)
- **Qt5** (>= 5.5)
- **Boost** (>= 1.79)
- CMake (>= 3.1.0) or QMake (>= 5.5)
- **Qt6** (>= 6.0)
- **Boost** (>= 1.77)
- CMake (>= 3.1.0)
- GNU C++ Compiler (gcc/g++ >= 5.3.0)
or Microsoft Visual Studio (>= 2017)

Expand All @@ -35,47 +35,34 @@ Follow official instructions of each tool.
sudo apt install git
sudo apt install git-gui

#### Install Qt5

sudo apt install qt5-default
whereis qt5
$ qt5: /usr/lib/x86_64-linux-gnu/qt5 /usr/lib/qt5 /usr/share/qt5

#### Install Qt5 IDE (QtCreator) and SDK

sudo apt install qtcreator

Or follow [instructions](https://wiki.qt.io/Install_Qt_5_on_Ubuntu
"https://wiki.qt.io/Install_Qt_5_on_Ubuntu").
#### Install Qt and QtCreator

sudo apt install libfontconfig1
sudo apt install mesa-common-dev
sudo apt install libglu1-mesa-dev

wget https://download.qt.io/official_releases/qt/5.14/5.14.2/qt-opensource-linux-x64-5.14.2.run
wget https://download.qt.io/official_releases/qt/6.0/6.0.0/qt-opensource-linux-x64-6.0.0.run

chmod +x qt-opensource-linux-x64-5.14.2.run
sudo ./qt-opensource-linux-x64-5.14.2.run
chmod +x qt-opensource-linux-x64-6.0.0.run
sudo ./qt-opensource-linux-x64-6.0.0.run

Select a dummy proxy, to skip the login page.

It install the tools (QtCreator 4.11.1) and SDK on `/opt/Qt5.14.2/`.
It install the tools (QtCreator) and SDK on `/opt/Qt/`.

Run it:

/opt/Qt5.14.2/Tools/QtCreator/bin/qtcreator
/opt/Qt/Tools/QtCreator/bin/qtcreator

Create a shortcut (Ubuntu, KDE...):

mkdir ~/.local/share/applications
cp /opt/Qt5.14.2/Tools/QtCreator/share/applications/org.qt-project.qtcreator.desktop ~/.local/share/applications
cp /opt/Qt/Tools/QtCreator/share/applications/org.qt-project.qtcreator.desktop ~/.local/share/applications



#### Install Boost C++ Library

wget https://boostorg.jfrog.io/artifactory/main/release/1.79.0/source/boost_1_79_0.tar.bz2
tar -zxvf boost_1_79_0.tar.gz
wget https://boostorg.jfrog.io/artifactory/main/release/1.77.0/source/boost_1_77_0.tar.bz2
tar -zxvf boost_1_77_0.tar.gz


Or download and unzip manually an older version of [Boost](https://www.boost.org/users/history/).
Expand All @@ -96,13 +83,6 @@ Setup the *Boost* library:
- For CMake:
Add variable `BOOST_ROOT_DIR` (type: PATH) with the path to Boost
PS: or configure `Boost_INCLUDE_DIR`

- For QMake:
Open `./3rd/boost/boost.pri`
and add path manually to variable `BOOST_ROOT_DIR`,
that gives the following line:
`BOOST_ROOT_DIR = <here-absolute-path-to-boost>/Boost/boost_1_79_0`



Build the application:
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
![GitHub All Releases](https://img.shields.io/github/downloads/setvisible/ArrowDL/total?style=for-the-badge)

![Chrome Web Store Users](https://img.shields.io/chrome-web-store/users/modofbhnhlagjmejdbalnijgncppjeio?style=for-the-badge&label=users&logo=google&logoColor=white)
[![Mozilla Add-on](https://img.shields.io/amo/users/down-right-now?style=for-the-badge&label=users&logo=mozilla&logoColor=white)](https://addons.mozilla.org/firefox/addon/down-right-now/ "Mozilla Firefox Add-on")
[![Chocolatey](https://img.shields.io/chocolatey/dt/downzemall?style=for-the-badge&label=chocolatey%20package)](https://community.chocolatey.org/packages/downzemall)
[![Mozilla Add-on](https://img.shields.io/amo/users/arrow-dl?style=for-the-badge&label=users&logo=mozilla&logoColor=white)](https://addons.mozilla.org/firefox/addon/arrow-dl/ "Mozilla Firefox Add-on")
[![Chocolatey](https://img.shields.io/chocolatey/dt/arrowdl?style=for-the-badge&label=chocolatey%20package)](https://community.chocolatey.org/packages/arrowdl)

![X (formerly Twitter) Follow](https://img.shields.io/twitter/follow/ArrowDLApp?style=for-the-badge&logo=x&label=Follow&logoColor=white)

Expand Down Expand Up @@ -66,7 +66,7 @@ More screenshots on the [Gallery](https://www.arrow-dl.com/ArrowDL/category/scre

Go to [Download](https://www.arrow-dl.com/ArrowDL/category/download.html) page to install the application for your operating system.

Rem: *Native-Client* is an alternative to *DownRightNow*. Click [here](NativeClient.md "NativeClient.md") for more information.
Rem: *Native-Client* is an alternative to *ArrowDL*. Click [here](NativeClient.md "NativeClient.md") for more information.

On Windows, you can also use the [Chocolatey package](https://community.chocolatey.org/packages/arrowdl) to handle the installation/updates:
```powershell
Expand Down Expand Up @@ -147,6 +147,6 @@ Click [here](CONTRIBUTING.md "CONTRIBUTING.md") for build instructions and tips.

The code is released under the GNU [Lesser General Public License (LGPL)](LICENSE "LICENSE").

Use it at your own risk. None of the authors, contributors, or anyone else connected with this ArrowDL software and the DownRightNow web-extension, in any way whatsoever, can be responsible for your use of the application.
Use it at your own risk. None of the authors, contributors, or anyone else connected with this ArrowDL software and the ArrowDL add-ons, in any way whatsoever, can be responsible for your use of the application.

Please be aware that this site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner.
6 changes: 3 additions & 3 deletions TRANSLATORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Note that unfinished translations may also be deployed from time to time.
### Offline Translation

This method requires:
- [Qt Framework](https://www.qt.io/) (Qt5.14 at the time of writing these lines)
- [Qt Framework](https://www.qt.io/)
- local clone of the repository

These files are the translations source (*.ts):
Expand Down Expand Up @@ -189,7 +189,7 @@ It generates *.qm (compiled translation files) to be deployed with the applicati

## References

- [Internationalization with Qt](https://doc.qt.io/qt-5/internationalization.html)
- [Qt Linguist Manual](https://doc.qt.io/qt-5/qtlinguist-index.html)
- [Internationalization with Qt](https://doc.qt.io/qt-6/internationalization.html)
- [Qt Linguist Manual](https://doc.qt.io/qt-6/qtlinguist-index.html)
- [Transifex Documentation](https://docs.transifex.com/formats/qt-ts)
- [Transifex TX Client](https://docs.transifex.com/transifex-github-integrations/github-tx-client)
2 changes: 2 additions & 0 deletions TROUBLESHOOTING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Troubleshooting

**This page is frozen. Please use Github > Issues instead.**

## Security Restriction

### Binary signature
Expand Down
2 changes: 1 addition & 1 deletion docs/_posts/2019-11-16-introducing-arrowdl.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ excerpt_separator: <!--more-->

It aims to work with latest versions of Mozilla Firefox (powered by *WebExtensions*), and other web browsers (Chrome, Edge, Safari...).

*ArrowDL* is written in C++ and based on the [Qt5](https://www.qt.io/ "https://www.qt.io/") framework.
*ArrowDL* is written in C++ and based on the [Qt](https://www.qt.io/ "https://www.qt.io/") framework.


## Goals
Expand Down
14 changes: 6 additions & 8 deletions docs/_posts/2019-12-05-web-extension.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,18 @@ excerpt_separator: <!--more-->

*ArrowDL* is now compatible with Chrome and Firefox!

The add-on *DownRightNow* sends data from your web browser to the standalone application *ArrowDL*.
The *ArrowDL* add-on sends data from your web browser to the *ArrowDL* application.


### Install the Web Browser Add-on (WebExtensions)
### Install the Add-on

| ![logo](/ArrowDL/assets/images/firefox.png) | ![logo](/ArrowDL/assets/images/chrome.png) |
|-----------------------------------|----------------------------------|
| Click here to intall [DownRightNow for Mozilla Firefox](https://addons.mozilla.org/en-US/firefox/addon/down-right-now/ "https://addons.mozilla.org/en-US/firefox/addon/down-right-now/") | Click here to intall [DownRightNow for Google Chrome](https://chrome.google.com/webstore/detail/down-right-now/modofbhnhlagjmejdbalnijgncppjeio "https://chrome.google.com/webstore/detail/down-right-now/modofbhnhlagjmejdbalnijgncppjeio") |
| Click here to intall [ArrowDL for Mozilla Firefox](https://addons.mozilla.org/en-US/firefox/addon/arrow-dl/ "https://addons.mozilla.org/en-US/firefox/addon/arrow-dl/") | Click here to intall [ArrowDL for Google Chrome](https://chrome.google.com/webstore/detail/arrow-dl/modofbhnhlagjmejdbalnijgncppjeio "https://chrome.google.com/webstore/detail/arrow-dl/modofbhnhlagjmejdbalnijgncppjeio") |


1. Install **DownRightNow** add-on

2. Go to the install directory of the Application (*ArrowDL*), and follow the instructions in `ReadMe.txt`

3. Then, go to "*Options*" in the WebExtension interface in your Web Browser. It should tell you if it's correctly connected with the Application.
1. Install **ArrowDL** add-on

2. Go to the install directory of the application (*ArrowDL*), and follow the instructions in `ReadMe.txt`

3. Then, go to "*Options*" in the WebExtensions interface in your web browser. It should tell you if it's correctly connected with the application.
2 changes: 1 addition & 1 deletion docs/_posts/2020-08-12-proxy-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ LibTorrent uses a separate settings storage, then to enable proxying with torren
### Further reading

- [Proxy server](https://en.wikipedia.org/wiki/Proxy_server) definition on Wikipedia
- Qt5 [Proxy Documentation](https://doc.qt.io/qt-5/qnetworkproxy.html)
- Qt6 [Proxy Documentation](https://doc.qt.io/qt-6/qnetworkproxy.html)
- LibTorrent [Proxy Documentation](https://www.libtorrent.org/features.html)


Expand Down
8 changes: 4 additions & 4 deletions docs/category/download-advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Table of Content:

2. Then, install the web extension:

1. Install **DownRightNow** add-on on the [web browser](#install-webextension)
1. Install **ArrowDL** add-on on the [web browser](#install-webextension)

2. Go to the install directory of the Application (*ArrowDL*), and follow the instructions in `ReadMe.txt`

Expand All @@ -44,7 +44,7 @@ Choose the browser:

| ![logo](/ArrowDL/assets/images/firefox.png) | ![logo](/ArrowDL/assets/images/chrome.png) | ![logo](/ArrowDL/assets/images/iexplorer.png) |
|-----------------------------------|----------------------------------|----------------------------------|
| Click here to intall [DownRightNow for Mozilla Firefox](https://addons.mozilla.org/en-US/firefox/addon/down-right-now/ ) | Click here to intall [DownRightNow for Google Chrome](https://chrome.google.com/webstore/detail/down-right-now/modofbhnhlagjmejdbalnijgncppjeio "https://chrome.google.com/webstore/detail/down-right-now/modofbhnhlagjmejdbalnijgncppjeio") | Click here to intall... Just kidding |
| Click here to intall [ArrowDL for Mozilla Firefox](https://addons.mozilla.org/en-US/firefox/addon/arrow-dl/ ) | Click here to intall [ArrowDL for Google Chrome](https://chrome.google.com/webstore/detail/arrow-dl/modofbhnhlagjmejdbalnijgncppjeio "https://chrome.google.com/webstore/detail/arrow-dl/modofbhnhlagjmejdbalnijgncppjeio") | Click here to intall... Just kidding |


#### Portable Archives
Expand Down Expand Up @@ -153,8 +153,8 @@ Footnotes:

/* A-Z sorted Urls */
const artifact_id_to_filenames = {
'id_chromium': "DownRightNow_chromium_" + tag_name + ".zip",
'id_firefox': "DownRightNow_firefox_" + tag_name + ".xpi",
'id_chromium': "ArrowDL_chromium_" + tag_name + ".zip",
'id_firefox': "ArrowDL_firefox_" + tag_name + ".xpi",
'id_linux_x64_app': "ArrowDL_" + tag_name + "_x86_64_no_launcher.AppImage",
'id_linux_x64_zip': "ArrowDL_" + tag_name + "_x86_64.tar.gz",
'id_mac_x64_dmg': "ArrowDL_" + tag_name + "_x86_64.dmg",
Expand Down
16 changes: 8 additions & 8 deletions docs/category/download.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ title: Download
<tbody>
<tr>
<td align="center">
<a href="https://addons.mozilla.org/en-US/firefox/addon/down-right-now/">
<a href="https://addons.mozilla.org/en-US/firefox/addon/arrow-dl/">
<img src="/ArrowDL/assets/images/firefox.png" alt="firefox logo">
</a>
</td>
<td align="center">
<a href="https://chrome.google.com/webstore/detail/down-right-now/modofbhnhlagjmejdbalnijgncppjeio">
<a href="https://chrome.google.com/webstore/detail/arrow-dl/modofbhnhlagjmejdbalnijgncppjeio">
<img src="/ArrowDL/assets/images/chrome.png" alt="chrome logo">
</a>
</td>
Expand All @@ -59,14 +59,14 @@ title: Download
<tr>
<td>
Click here to intall
<a href="https://addons.mozilla.org/en-US/firefox/addon/down-right-now/">
<b>DownRightNow for Mozilla Firefox</b>
<a href="https://addons.mozilla.org/en-US/firefox/addon/arrow-dl/">
<b>ArrowDL for Mozilla Firefox</b>
</a>
</td>
<td>
Click here to intall
<a href="https://chrome.google.com/webstore/detail/down-right-now/modofbhnhlagjmejdbalnijgncppjeio">
<b>DownRightNow for Google Chrome</b>
<a href="https://chrome.google.com/webstore/detail/arrow-dl/modofbhnhlagjmejdbalnijgncppjeio">
<b>ArrowDL for Google Chrome</b>
</a>
</td>
<td>
Expand Down Expand Up @@ -213,13 +213,13 @@ CPU architecture, browser, or release version, have a look at

if (browserType === "Chrome") {
webExtensionBrowserName = "Google Chrome";
webExtensionUrl="https://chrome.google.com/webstore/detail/down-right-now/modofbhnhlagjmejdbalnijgncppjeio";
webExtensionUrl="https://chrome.google.com/webstore/detail/arrow-dl/modofbhnhlagjmejdbalnijgncppjeio";
webExtensionImageSrc = "/ArrowDL/assets/images/chrome.png";
showSpecificInstructions(true);

} else if (browserType === "Firefox") {
webExtensionBrowserName = "Mozilla Firefox";
webExtensionUrl="https://addons.mozilla.org/en-US/firefox/addon/down-right-now/";
webExtensionUrl="https://addons.mozilla.org/en-US/firefox/addon/arrow-dl/";
webExtensionImageSrc = "/ArrowDL/assets/images/firefox.png";
showSpecificInstructions(true);

Expand Down
4 changes: 2 additions & 2 deletions docs/category/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ It contains some dummy data to run the application.

1. Open *ArrowDL*
- *Start Menu* > *ArrowDL*
> Or alternatively, open *DownRightNow* from your web browser (-> toolbar menu, or right-click context menu)
> Or alternatively, open *ArrowDL* add-on from your web browser (-> toolbar menu, or right-click context menu)
2. Open the wizard
- copy-paste the URL
> Or alternatively, click 'immediate download' from *DownRightNow*
> Or alternatively, click 'immediate download' from *ArrowDL* add-on
![](../assets/images/tutorial/01-wizard.png)

Expand Down
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ title: What is ArrowDL

**ArrowDL is a mass download manager** for Windows, Mac OS X and Linux. It helps you to select, organize, prioritize and run your downloads in parallel.

Based on the [Qt5](https://www.qt.io/ "https://www.qt.io/") framework, ArrowDL is written in C/C++. It's a free (as in "*free speech*" and also as in "*free beer*") software. Its use is governed by [LGPL](/ArrowDL/LICENSE.txt "LICENSE") License.
Based on the [Qt](https://www.qt.io/ "https://www.qt.io/") framework, ArrowDL is written in C/C++. It's a free (as in "*free speech*" and also as in "*free beer*") software. Its use is governed by [LGPL](/ArrowDL/LICENSE.txt "LICENSE") License.

**DownRightNow is an add-on for Chrome/Firefox**. It connects *ArrowDL* with your web browser. This extension helps you to download all the links and media you can find on the Web. When you visit a page, click to DownRightNow to see the content of the page. The content are links, references, images, videos... and other media present on the page.
**ArrowDL add-on for Chrome/Firefox**. It connects *ArrowDL* with your web browser. This WebExtensions add-on helps you to download all the links and media you can find on the Web. When you visit a page, click to ArrowDL to see the content of the page. The content are links, references, images, videos... and other media present on the page.

![Screenshot](/ArrowDL/assets/images/screenshot_1280x800.png)

Expand Down
12 changes: 8 additions & 4 deletions src/core/theme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@ int Theme::fromColorScheme(const QString &colorScheme)
/*!
* Modify palette to dark.
*
* Recommandation:
* Google Material Design Guidelines.
* https://design.google/library/material-design-dark-theme
*
* Inspiration:
* https://github.com/Jorgen-VikingGod/Qt-Frameless-Window-DarkStyle/blob/master/DarkStyle.cpp
*/
Expand All @@ -191,7 +195,7 @@ static void polishDark(QPalette &palette)
palette.setColor(QPalette::Window, QColor(53, 53, 53));
palette.setColor(QPalette::Shadow, QColor(20, 20, 20));
// --
palette.setColor(QPalette::Highlight, QColor(42, 130, 218));
palette.setColor(QPalette::Highlight, QColor(26, 85, 145)); // custom
palette.setColor(QPalette::Disabled, QPalette::Highlight, QColor(80, 80, 80));
palette.setColor(QPalette::HighlightedText, Qt::white);
palette.setColor(QPalette::Disabled, QPalette::HighlightedText, QColor(127, 127, 127));
Expand Down Expand Up @@ -239,11 +243,11 @@ void Theme::applyTheme(const QMap<QString, QVariant> &map)
: QLatin1String("default")
);
}
auto dark_palette = qApp->style()->standardPalette();
auto palette = qApp->style()->standardPalette();
if (isDarkMode) {
polishDark(dark_palette);
polishDark(palette);
}
qApp->setPalette(dark_palette); // emits QEvent::PaletteChange
qApp->setPalette(palette); // emits QEvent::PaletteChange
qApp->setStyle(new CustomStyle(platformStyle)); // emits QEvent::StyleChange
}

Expand Down
Loading

0 comments on commit c671c0f

Please sign in to comment.