Commit Graph

1522 Commits

Author SHA1 Message Date
Joonas Henriksson f3822e5cef
gtk4: Add block cursor entry styling 2022-02-08 04:44:41 +02:00
Joonas Henriksson b028d98cef
gtk4: Add emoji chooser styling 2022-02-08 04:44:41 +02:00
Joonas Henriksson 004d16ac50
gtk4: Update app icons shadows
Having no icon shadows seems most appropriate for Arc, based on
existing design.
2022-02-08 04:44:41 +02:00
Joonas Henriksson 5e0f2760c7
gtk4: Fix missing button styles
There is no need for the undecorated-* and checked-* styles in Arc.
The resulting apprearance is identical to GTK 3.
2022-02-08 04:44:41 +02:00
Joonas Henriksson 050b6ced10
gtk4: Cleanup unnecessary comments and code 2022-02-08 04:44:41 +02:00
Joonas Henriksson f040255886
gtk4: Remove theme versioning support
The changes for the GTK 4 theme seem to be backwards compatible, and
small enough to not require version specific theming (at least at
4.6). Based on comments from developers, this shouldn't change in the
future either. Drop the versioning support, and only ship single
theme, to simplify both maintenance and building.
2022-02-08 04:44:41 +02:00
Joonas Henriksson b18f4c1cca
gtk4: Clip button background to padding-box
Arc GTK 3 defaults to padding-box [1], and without it some button
borders appear broken (at least stackswitcher buttons are affected).

[1] adcc946b61/common/gtk-3.0/sass/_common.scss (L11)
2022-01-23 01:59:00 +02:00
Joonas Henriksson ef6c38036f
build: Generate easier-to-debug CSS from SASS for debug builds 2022-01-22 23:48:02 +02:00
Joonas Henriksson 7677aeea7a
build: Allow passing options for sassc 2022-01-22 23:47:11 +02:00
Joonas Henriksson ce82cd590e
gtk4: Fix headerbar switch margins
The margin derived from default theme was too large, and caused the
headerbar to grow in height by 2px.
2022-01-20 17:16:43 +02:00
Joonas Henriksson 737fb3ea0a
gtk4: Hide scale/progressbar border via scale placeholders
Make scale and progress bar identical, and this more consistent with
the Default GTK theme stylesheet
2022-01-20 03:24:49 +02:00
Joonas Henriksson d98f762f7e
gtk4: Drop negative margin from progress
This is not necessary in Arc, since the trough doesn't have a border.
This also fixes a Gtk-WARNING due to the progress elements reporting
negative min width/height.
2022-01-20 03:16:40 +02:00
Joonas Henriksson 6892ddf1f7
meson: Add missing check argument to few run_commands
This is generally a good idea, and removes a build warning.
2022-01-20 02:48:07 +02:00
Joonas Henriksson adcc946b61
Update version for release 20220105 2022-01-05 20:17:39 +02:00
Joonas Henriksson 9167b98b49
build: Set glib-compile-resources dependency in base meson.build file
For consistency, assign all dependencies at the same place.
2022-01-05 05:06:33 +02:00
Joonas Henriksson cfed84abde
gtk3: Stop using pixdata resources
Using 'to-pixdata' in gresources has been deprecated since gdk-pixbuf
version 2.32 [1]. Using it also requires having 'gdk-pixbuf-pixdata'
command available on the build environment, which may be part of
various different packages split from gdk-pixbuf depending on
distribution, and is therefore difficult dependency to document.

[1] https://developer-old.gnome.org/gio/unstable/GResource.html
2022-01-04 02:01:53 +02:00
Joonas Henriksson 0effc8f889
build: Fix stylesheet dependency for GTK gresources
Since the stylesheet targets were not stored in an array, only the
main variant stylesheet target was a dependency for the theme
gresource. This could result the build to fail, if the dark
stylesheet was not generated in time.

Fixes: https://github.com/jnsh/arc-theme/issues/170
2022-01-03 17:27:34 +02:00
Joonas Henriksson f8f674dfa4
Update version for release 20220102 2022-01-02 19:49:50 +02:00
Joonas Henriksson 169d845bf3
cinnamon: Fix calendar-event-color-strip background
The background-color is hardcoded, so color it with inset box-shadow
instead, for similar look with gnome-shell messages.
2022-01-02 18:51:53 +02:00
Joonas Henriksson 5d26f4e8f4
cinnamon: Update calendar styling for 5.2
Using gnome-shell calendar as a reference when possible.
2022-01-02 18:51:53 +02:00
Joonas Henriksson a0a02c0d2f
cinnamon: Update run dialog styling
Based on upstream commit:
a4034be7b6 (diff-3d6ff18af541863657831bc2056f09dd0f4d6e0227bdac3329b28b0903c2663b)
2022-01-01 20:43:33 +02:00
Joonas Henriksson 0a570117ad
cinnamon: Add confirm-dialog-title styling
Hide the confirm dialog title label, similar to the run dialog text.

Based on upstream commit:
a13651d5eb
2022-01-01 20:43:33 +02:00
Joonas Henriksson 8fe1a5d5a8
cinnamon: Support version 5.2 2022-01-01 20:43:33 +02:00
Joonas Henriksson 46d1aa0223
cinnamon: Move thumbnails into a subdirectory 2022-01-01 20:43:33 +02:00
Joonas Henriksson d238325fef
INSTALL: Update build dependencies 2022-01-01 20:42:30 +02:00
Joonas Henriksson 54b20abada
gtk4: Stop using pixdata resources
This has been deprecated in GTK 4 for long time [1], and causes some
applications to crash with GTK 4.6 [2].

[1] 3287469929
[2] https://github.com/jnsh/arc-theme/issues/168#issuecomment-1003566219
2022-01-01 18:02:23 +02:00
Joonas Henriksson e8c00df080
build: Bump meson_version to 0.53.0
The filesystem Meson module, that is used since [1], has only been
available starting from meson version 0.53.0. That should be recent
enough for most notable LTS distributions as well.

[1] 3421f0ec49
2021-12-28 02:39:26 +02:00
Joonas Henriksson 8288fa8468
cinnamon: Always compile transparency-enabled CSS
Cinnamon doesn't really have a non-transparent variant, since large
part of the UI elements are drawn using SVG assets, and therefore
the transparency can't be easily switched off. Always enable
transparency for the generated CSS as well. This was accidentally
changed in commit a7f60904f8.
2021-12-27 22:46:19 +02:00
Joonas Henriksson 3421f0ec49
build: Pre-render assets for dist packages
Mainly to avoid Inkscape dependency, but it also reduces build time
greatly, when building from release tarballs.
2021-12-27 22:46:19 +02:00
Joonas Henriksson 27314ecc0f
gtk3: Move thumbnails into a common directory 2021-12-27 22:46:19 +02:00
Joonas Henriksson 1caa2455e8
gtk4: Move asset files to a subdirectory
Mainly to prepare for having prerendered assets in future release
tarballs, it is necessary and cleaner to have the asset files in
a subdir. This also tidies up the main gtk4 meson.build file
slightly.
2021-12-27 22:46:19 +02:00
Joonas Henriksson 10dc355756
gtk3: Move asset files to a subdirectory
Mainly to prepare for having prerendered assets in future release
tarballs, it is much cleaner to have the asset files in a subdir.
This also tidies up the main gtk3 meson.build file slightly.
2021-12-27 22:46:19 +02:00
Joonas Henriksson 583e02ec31
gtk2: Move assets to their own subdirectories
Assets are not specific to certain variant, but can be used with any
variant, so it makes more sense to have them separate from the
variant-specific gtkrc files.
2021-12-27 22:46:14 +02:00
Joonas Henriksson e73c0cb1c1
meson: Define install_file script as a string
To keep support for meson <0.55.0. This causes some configure output
spam, and therefore should be reverted whenever the target
meson_version gets bumped.

Fixes: https://github.com/jnsh/arc-theme/issues/166
2021-12-26 20:38:12 +02:00
Joonas Henriksson d9e2940980
meson: Install groups of assets at once
This speeds up installation significantly, as the custom python
install script does not get invoked separately for each installed
file.
2021-12-18 23:46:27 +02:00
Joonas Henriksson 001b5a0efd
meson: Fix overwriting symlinks with install-file.py
Python's shutil.copyfile fails with FileExistsError when copying
symbolic links, if the link already exists in the destination
directory. Work around this by removing the old symlink first in
such situations.
2021-12-18 23:26:54 +02:00
Joonas Henriksson e05586251c
meson: Use custom file install script
In some situations Meson's own file installation capabilities aren't
sufficient, e.g. when generated file must be renamed during install.
Previously those cases were handled by invoking 'sh' to execute the
'install' program.

The problem was that different operating systems may have different
'install' program, that handles command line options differently
from GNU install (e.g. https://github.com/jnsh/arc-theme/issues/112).

Additionally, invoking 'sh' for every single file resulted in flood
of "Program sh found" messages in 'meson setup' output.

Install files with the added custom python script from now on, to
circumvent these issues.
2021-12-18 23:17:52 +02:00
Joonas Henriksson fa2c5a1fbb
README: Update supported versions 2021-12-10 16:12:30 +02:00
Joonas Henriksson e5ab834eda
gtk3: Remove theme versioning support
Since there's only one supported version, there's no need for this.
2021-12-10 16:12:30 +02:00
Joonas Henriksson 52241a0b13
gtk3: Drop support for old versions
These shouldn't be useful for up-to-date distributions (some LTS
distributions still have 3.22, but they also ship with meson version
too old for building the theme). In case it was necessary, the 3.24
theme should also work without major issues with 3.22 and 3.20.
2021-12-10 16:01:44 +02:00
Joonas Henriksson 548197b881
cinnamon: Drop support for versions before 3.8 2021-12-10 02:48:02 +02:00
Joonas Henriksson 2be9eea527
gnome-shell: Drop support for versions before 3.28 2021-12-10 02:47:54 +02:00
Joonas Henriksson dd22598884
metacity-3: Fix border style decorations on dark variant
Fixes the top border color for 1px border style decorations.
The remaining *_edge pieces shouldn't be necessary either, since
they should get covered by the overlay piece. However, the latter
apparently isn't always drawn in correct size, leaving right and
bottom borders hidden.
2021-12-10 02:32:53 +02:00
Joonas Henriksson e62b027edb
metacity-3: Do not apply button_border when there is no titlebar
Othewise button_border will be applied in the top decoration border,
making it unintentionally thick.

Fixes: https://github.com/jnsh/arc-theme/issues/165
2021-12-10 01:20:19 +02:00
Joonas Henriksson b92056ccf1
Revert "build: Do not install lighter and darker xfwm4 themes"
This reverts commit b2d9fb8864.

The change didn't take into consideration the possibility of someone
installing darker variant without dark variant, or lighter variant
without light variant. In those cases there would be no matching
xfwm4 themes available for those variants after installation.

Another option would installing lighter/darker variants only if the
light/dark variants aren't beign installed, but just revert this for
now instead of overcomplicating things for small space saving.
2021-12-07 15:36:26 +02:00
Joonas Henriksson 8a2ed50fe7
xfwm4: Reduce button spacing
Make titlebar button spacing consistent with GTK decorations.
2021-12-07 03:50:39 +02:00
Joonas Henriksson ddad5c28e0
xfwm4: Adopt square bottom corners
Every other Arc decorations have square bottom corners, so adopt
the same design for xfwm4. This looks more consistent with GTK
client side decorations, now used in many Xfce desktop applications.
2021-12-07 03:50:39 +02:00
Joonas Henriksson b540d9273c
xfwm4: Increase resize border width
The resize area for windows in xfwm4 only consists of the actual,
border area, and not any area outside the decorations like with many
other window managers [1]. Due to this, thin decoration borders
cause windows resizing to be difficult.

Increase border width on Arc decorations from 2px to 4px, which
should considerably improve the situation, while still keeping
the borders thin enough to fit the Arc design.

This also fixes the appearance of the outer border of dark window
decorations, where the titlebar has 1px dark border, when it is 2px
wide around rest of the window.

[1] https://gitlab.xfce.org/xfce/xfwm4/-/issues/176

Fixes: https://github.com/jnsh/arc-theme/issues/63
2021-12-07 03:50:32 +02:00
Joonas Henriksson dee21542b1
gtk3: Hide mate-panel sensors applet graph border
Fixes: https://github.com/jnsh/arc-theme/issues/164
2021-12-06 16:08:12 +02:00
Joonas Henriksson 01aae788e7
metacity-3: Increase rounded corner radius
For identical corners with GTK decorations.

Related: https://github.com/jnsh/arc-theme/issues/142
2021-12-04 15:15:17 +02:00