Add white version

Dmitry 5 years ago
commit ac47c6d2d0

1
.gitignore vendored

@ -0,0 +1 @@
src/x*

@ -0,0 +1,209 @@
Copyright (c) 2016 Keefer Rourke <keefer.rourke@gmail.com> and others.
Capitaine cursors are based on the KDE Breeze icon theme.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
Clarification:
The GNU Lesser General Public License or LGPL is written for
software libraries in the first place. We expressly want the LGPL to
be valid for this artwork library too.
La Capitaine theme icons is a special kind of software library, it is an
artwork library, its elements can be used in a Graphical User Interface, or
GUI.
Source code, for this library means:
- where they exist, SVG;
- otherwise, if applicable, the multi-layered formats xcf or psd, or
otherwise png;
- additionally, the multi-layers Microsoft Windows cursor formats: cur, or ani.
The LGPL in some sections obliges you to make the files carry
notices. With images this is in some cases impossible or hardly useful.
With this library a notice is placed at a prominent place in the directory
containing the elements. You may follow this practice.
The exception in section 5 of the GNU Lesser General Public License covers
the use of elements of this art library in a GUI.
https://krourke.org
-----
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.

@ -0,0 +1,102 @@
# Capitaine cursors
This is an x-cursor theme inspired by macOS and based on KDE Breeze.
The source files were made in Inkscape, and the theme was designed to
pair well with my icon pack,
[La Capitaine](https://github.com/keeferrourke/la-capitaine-icon-theme).
## Pre-built binaries
### GNU/Linux
Everything you need to build the xcursor theme is found in `src/`, and
the prebuilt theme for GNU/Linux desktops is found in `dist/`.
### Windows
I have also provided a Windows cursor theme available in `.windows/`,
though it is not buildable from source due to the broken nature of
Microsoft's operating system. Microsoft cursors must be made using a
proprietary GUI editor from PNG sources, which is **bad**. For this
reason, the Windows version of Capitaine cursors will not receive
substantial updates.
## Notes
Building the x-cursor theme from SVG source requires a regular inkscape
installation. It also needs a command called `xcursorgen`. If the build
script fails, you should probably install inkscape and xcursorgen using
your preferred package manager :)
## License
Capitaine cursors is based on KDE Breeze cursors, as such it falls under
the same license.
Capitaine cursors is LGPLv3. See COPYING for more details.
## Installation
### \*NIXes, \*BSDs, and possibly others
To install the cursor theme simply copy the compiled theme to your icons
directory. For local user installation:
```
cp -pr dist/ ~/.icons/capitaine-cursors
```
For system-wide installation for all users:
```
sudo cp -pr dist/ /usr/share/icons/capitaine-cursors
```
Then set the theme with your preferred desktop tools.
#### Fedora and EPEL
There is a third party Copr repository with ready-to-use RPMs:
```
sudo dnf copr enable tcg/themes
sudo dnf install la-capitaine-cursor-theme
```
#### Arch Linux
Now the package hs been moved to the official repository
```
pacman -S capitaine-cursors
```
#### Ubuntu
[PPA](https://launchpad.net/~dyatlov-igor/+archive/ubuntu/la-capitaine) (maintained by [@igor-dyatlov](https://github.com/igor-dyatlov)):
```
sudo add-apt-repository ppa:dyatlov-igor/la-capitaine
sudo apt update
sudo apt install la-capitaine-cursor-theme
```
### Windows
The Windows build comes with an INF file to make installation easy.
1. Open `.windows/` in Explorer, and right click on `install.inf`.
2. Click 'Install' from the context menu, and authorise the
modifications to your system.
3. Open `Control Panel` > `Personalisation and Appearance` >
`Change mouse pointers`, and select Capitaine cursors.
4. Click 'Apply'.
## Building from source
You'll find everything you need to build and modify this cursor set in
the `src/` directory. To build the xcursor theme from the SVG source
run:
```
./build.sh
```
This will generate the pixmaps and appropriate aliases.
The freshly compiled cursor theme will be located in `dist/`
## Donations
I'm a poor computer science student &ndash; and I spend many hours per
week working on software and artwork for the community. If you like this
cursor theme and want to support (buy me a coffee?), please consider
[donating](https://paypal.me/keeferrourke).
## Preview
![](preview.png)

@ -0,0 +1,77 @@
#!/bin/bash
# Capitaine cursors, macOS inspired cursors based on KDE Breeze
# Copyright (c) 2016 Keefer Rourke <keefer.rourke@gmail.com>
# Modified to include white cursors by Efus10n - 4 Mar 2019
function create {
cd "$SRC"
mkdir -p x1 x1_25 x1_5 x2
cd "$SRC"/$1
# find . -name "*.svg" -type f -exec sh -c 'inkscape -z -e "../x1/${0%.svg}.png" -w 32 -h 32 $0' {} \;
# find . -name "*.svg" -type f -exec sh -c 'inkscape -z -e "../x1_25/${0%.svg}.png" -w 40 -w 40 $0' {} \;
# find . -name "*.svg" -type f -exec sh -c 'inkscape -z -e "../x1_5/${0%.svg}.png" -w 48 -w 48 $0' {} \;
# find . -name "*.svg" -type f -exec sh -c 'inkscape -z -e "../x2/${0%.svg}.png" -w 64 -w 64 $0' {} \;
cd $SRC
# generate cursors
if [[ "$THEME" =~ White$ ]]; then
BUILD="$SRC"/../dist-white
else BUILD="$SRC"/../dist
fi
OUTPUT="$BUILD"/cursors
ALIASES="$SRC"/cursorList
if [ ! -d "$BUILD" ]; then
mkdir "$BUILD"
fi
if [ ! -d "$OUTPUT" ]; then
mkdir "$OUTPUT"
fi
echo -ne "Generating cursor theme...\\r"
for CUR in config/*.cursor; do
BASENAME="$CUR"
BASENAME="${BASENAME##*/}"
BASENAME="${BASENAME%.*}"
xcursorgen "$CUR" "$OUTPUT/$BASENAME"
done
echo -e "Generating cursor theme... DONE"
cd "$OUTPUT"
#generate aliases
echo -ne "Generating shortcuts...\\r"
while read ALIAS; do
FROM="${ALIAS#* }"
TO="${ALIAS% *}"
if [ -e $TO ]; then
continue
fi
ln -sr "$FROM" "$TO"
done < "$ALIASES"
echo -e "Generating shortcuts... DONE"
cd "$PWD"
echo -ne "Generating Theme Index...\\r"
INDEX="$OUTPUT/../index.theme"
if [ ! -e "$OUTPUT/../$INDEX" ]; then
touch "$INDEX"
echo -e "[Icon Theme]\nName=$THEME\n" > "$INDEX"
fi
echo -e "Generating Theme Index... DONE"
}
# generate pixmaps from svg source
SRC=$PWD/src
THEME="Posy"
create svg
# THEME="Capitaine Cursors - White"
# create svg-white

BIN
dist/cursors/alias vendored

Binary file not shown.

Binary file not shown.

@ -0,0 +1 @@
default

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
dist/cursors/cell vendored

Binary file not shown.

Binary file not shown.

@ -0,0 +1 @@
not-allowed

@ -0,0 +1 @@
dnd-move

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
dist/cursors/copy vendored

Binary file not shown.

@ -0,0 +1 @@
crosshair

@ -0,0 +1 @@
not-allowed

Binary file not shown.

BIN
dist/cursors/default vendored

Binary file not shown.

@ -0,0 +1 @@
copy

Binary file not shown.

Binary file not shown.

@ -0,0 +1 @@
dnd-move

Binary file not shown.

BIN
dist/cursors/draft vendored

Binary file not shown.

@ -0,0 +1 @@
size_hor

BIN
dist/cursors/fleur vendored

Binary file not shown.

@ -0,0 +1 @@
no-drop

1
dist/cursors/grab vendored

@ -0,0 +1 @@
openhand

@ -0,0 +1 @@
size_hor

@ -0,0 +1 @@
progress

@ -0,0 +1 @@
pointer

@ -0,0 +1 @@
pointer

BIN
dist/cursors/help vendored

Binary file not shown.

@ -0,0 +1 @@
text

Binary file not shown.

@ -0,0 +1 @@
default

@ -0,0 +1 @@
progress

Binary file not shown.

1
dist/cursors/link vendored

@ -0,0 +1 @@
alias

1
dist/cursors/move vendored

@ -0,0 +1 @@
dnd-move

@ -0,0 +1 @@
size_ver

@ -0,0 +1 @@
size_bdiag

BIN
dist/cursors/no-drop vendored

Binary file not shown.

Binary file not shown.

@ -0,0 +1 @@
size_fdiag

Binary file not shown.

BIN
dist/cursors/pencil vendored

Binary file not shown.

BIN
dist/cursors/pirate vendored

Binary file not shown.

1
dist/cursors/plus vendored

@ -0,0 +1 @@
cell

BIN
dist/cursors/pointer vendored

Binary file not shown.

@ -0,0 +1 @@
pointer

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -0,0 +1 @@
size_ver

@ -0,0 +1 @@
size_hor

@ -0,0 +1 @@
size_ver

@ -0,0 +1 @@
fleur

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -0,0 +1 @@
col-resize

@ -0,0 +1 @@
row-resize

BIN
dist/cursors/text vendored

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -0,0 +1 @@
size_ver

Binary file not shown.

@ -0,0 +1 @@
size_hor

BIN
dist/cursors/wait vendored

Binary file not shown.

@ -0,0 +1 @@
wait

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save