Skip to content

Commit

Permalink
Make axis line default thinner
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhodge931 committed Dec 9, 2024
1 parent ff43b8f commit fe60eac
Show file tree
Hide file tree
Showing 116 changed files with 19,185 additions and 19,184 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Removed `gg_ribbon` alpha default, and changed `gg_smooth` to NA.
* Added colour blending (e.g. `blend = "multiply`).
* Added `gg_lineribbon`.
* Updated `*_mode_*` themes to default to `axis_line_linewidth = 0.25`.

# ggblanket 11.0.0

Expand Down
12 changes: 6 additions & 6 deletions R/dark_mode.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ dark_mode_r <- function (
base_family = "",
base_colour = "#C8D7DFFF",
axis_line_colour = "#C8D7DFFF",
axis_line_linewidth = 0.33,
axis_line_linewidth = 0.25,
axis_ticks_colour = axis_line_colour,
axis_ticks_linewidth = axis_line_linewidth,
panel_grid_colour = "#00040AFF",
panel_grid_linewidth = 1.33,
panel_background_fill ="#050D1BFF",
plot_background_fill = "#00040AFF",
legend_axis_line_colour = plot_background_fill,
legend_axis_line_linewidth = 0.33,
legend_axis_line_linewidth = axis_line_linewidth,
legend_background_fill = plot_background_fill,
legend_key_fill = plot_background_fill,
legend_ticks_colour = legend_axis_line_colour,
Expand Down Expand Up @@ -115,15 +115,15 @@ dark_mode_t <- function (
base_family = "",
base_colour = "#C8D7DFFF",
axis_line_colour = "#C8D7DFFF",
axis_line_linewidth = 0.33,
axis_line_linewidth = 0.25,
axis_ticks_colour = axis_line_colour,
axis_ticks_linewidth = axis_line_linewidth,
panel_grid_colour = "#00040AFF",
panel_grid_linewidth = 1.33,
panel_background_fill ="#050D1BFF",
plot_background_fill = "#00040AFF",
legend_axis_line_colour = plot_background_fill,
legend_axis_line_linewidth = 0.33,
legend_axis_line_linewidth = axis_line_linewidth,
legend_background_fill = plot_background_fill,
legend_key_fill = plot_background_fill,
legend_ticks_colour = legend_axis_line_colour,
Expand Down Expand Up @@ -165,15 +165,15 @@ dark_mode_b <- function (
base_family = "",
base_colour = "#C8D7DFFF",
axis_line_colour = "#C8D7DFFF",
axis_line_linewidth = 0.33,
axis_line_linewidth = 0.25,
axis_ticks_colour = axis_line_colour,
axis_ticks_linewidth = axis_line_linewidth,
panel_grid_colour = "#00040AFF",
panel_grid_linewidth = 1.33,
panel_background_fill ="#050D1BFF",
plot_background_fill = "#00040AFF",
legend_axis_line_colour = plot_background_fill,
legend_axis_line_linewidth = 0.33,
legend_axis_line_linewidth = axis_line_linewidth,
legend_background_fill = plot_background_fill,
legend_key_fill = plot_background_fill,
legend_ticks_colour = legend_axis_line_colour,
Expand Down
16 changes: 8 additions & 8 deletions R/flex_mode.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ flex_mode_base <- function(
plot_caption_face = "plain",
plot_caption_hjust = 0,
axis_line_colour = "#121B24FF",
axis_line_linewidth = 0.33,
axis_line_linewidth = 0.25,
axis_ticks_colour = axis_line_colour,
axis_ticks_linewidth = axis_line_linewidth,
axis.ticks.length = grid::unit(base_size / 3, "pt"),
Expand All @@ -68,7 +68,7 @@ flex_mode_base <- function(
panel_background_fill ="#FFFFFFFF",
plot_background_fill = "#FFFFFFFF",
legend_axis_line_colour = plot_background_fill,
legend_axis_line_linewidth = 0.33,
legend_axis_line_linewidth = axis_line_linewidth,
legend_background_fill = plot_background_fill,
legend_key_fill = plot_background_fill,
legend_ticks_colour = legend_axis_line_colour,
Expand Down Expand Up @@ -216,7 +216,7 @@ flex_mode_r <- function (
plot_caption_colour = colorspace::lighten(base_colour, 0.1),
plot_caption_hjust = 0,
axis_line_colour = "#121B24FF",
axis_line_linewidth = 0.33,
axis_line_linewidth = 0.25,
axis_ticks_colour = axis_line_colour,
axis_ticks_linewidth = axis_line_linewidth,
axis.ticks.length = grid::unit(base_size / 3, "pt"),
Expand All @@ -226,7 +226,7 @@ flex_mode_r <- function (
panel_background_fill ="#FFFFFFFF",
plot_background_fill = "#FFFFFFFF",
legend_axis_line_colour = plot_background_fill,
legend_axis_line_linewidth = 0.33,
legend_axis_line_linewidth = axis_line_linewidth,
legend_background_fill = plot_background_fill,
legend_key_fill = plot_background_fill,
legend_ticks_colour = legend_axis_line_colour,
Expand Down Expand Up @@ -304,7 +304,7 @@ flex_mode_t <- function (
plot_caption_colour = colorspace::lighten(base_colour, 0.1),
plot_caption_hjust = 0,
axis_line_colour = "#121B24FF",
axis_line_linewidth = 0.33,
axis_line_linewidth = 0.25,
axis_ticks_colour = axis_line_colour,
axis_ticks_linewidth = axis_line_linewidth,
axis.ticks.length = grid::unit(base_size / 3, "pt"),
Expand All @@ -314,7 +314,7 @@ flex_mode_t <- function (
panel_background_fill ="#FFFFFFFF",
plot_background_fill = "#FFFFFFFF",
legend_axis_line_colour = plot_background_fill,
legend_axis_line_linewidth = 0.33,
legend_axis_line_linewidth = axis_line_linewidth,
legend_background_fill = plot_background_fill,
legend_key_fill = plot_background_fill,
legend_ticks_colour = legend_axis_line_colour,
Expand Down Expand Up @@ -407,7 +407,7 @@ flex_mode_b <- function (
plot_caption_colour = colorspace::lighten(base_colour, 0.1),
plot_caption_hjust = 0,
axis_line_colour = "#121B24FF",
axis_line_linewidth = 0.33,
axis_line_linewidth = 0.25,
axis_ticks_colour = axis_line_colour,
axis_ticks_linewidth = axis_line_linewidth,
axis.ticks.length = grid::unit(base_size / 3, "pt"),
Expand All @@ -417,7 +417,7 @@ flex_mode_b <- function (
panel_background_fill ="#FFFFFFFF",
plot_background_fill = "#FFFFFFFF",
legend_axis_line_colour = plot_background_fill,
legend_axis_line_linewidth = 0.33,
legend_axis_line_linewidth = axis_line_linewidth,
legend_background_fill = plot_background_fill,
legend_key_fill = plot_background_fill,
legend_ticks_colour = legend_axis_line_colour,
Expand Down
12 changes: 6 additions & 6 deletions R/light_mode.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ light_mode_r <- function (
base_family = "",
base_colour = "#121B24FF",
axis_line_colour = "#121B24FF",
axis_line_linewidth = 0.33,
axis_line_linewidth = 0.25,
axis_ticks_colour = axis_line_colour,
axis_ticks_linewidth = axis_line_linewidth,
panel_grid_colour = "#F6F8FAFF",
panel_grid_linewidth = 1.33,
panel_background_fill ="#FFFFFFFF",
plot_background_fill = "#FFFFFFFF",
legend_axis_line_colour = plot_background_fill,
legend_axis_line_linewidth = 0.33,
legend_axis_line_linewidth = axis_line_linewidth,
legend_background_fill = plot_background_fill,
legend_key_fill = plot_background_fill,
legend_ticks_colour = legend_axis_line_colour,
Expand Down Expand Up @@ -112,15 +112,15 @@ light_mode_t <- function (
base_family = "",
base_colour = "#121B24FF",
axis_line_colour = "#121B24FF",
axis_line_linewidth = 0.33,
axis_line_linewidth = 0.25,
axis_ticks_colour = axis_line_colour,
axis_ticks_linewidth = axis_line_linewidth,
panel_grid_colour = "#F6F8FAFF",
panel_grid_linewidth = 1.33,
panel_background_fill ="#FFFFFFFF",
plot_background_fill = "#FFFFFFFF",
legend_axis_line_colour = plot_background_fill,
legend_axis_line_linewidth = 0.33,
legend_axis_line_linewidth = axis_line_linewidth,
legend_background_fill = plot_background_fill,
legend_key_fill = plot_background_fill,
legend_ticks_colour = legend_axis_line_colour,
Expand Down Expand Up @@ -157,15 +157,15 @@ light_mode_b <- function (
base_family = "",
base_colour = "#121B24FF",
axis_line_colour = "#121B24FF",
axis_line_linewidth = 0.33,
axis_line_linewidth = 0.25,
axis_ticks_colour = axis_line_colour,
axis_ticks_linewidth = axis_line_linewidth,
panel_grid_colour = "#F6F8FAFF",
panel_grid_linewidth = 1.33,
panel_background_fill ="#FFFFFFFF",
plot_background_fill = "#FFFFFFFF",
legend_axis_line_colour = plot_background_fill,
legend_axis_line_linewidth = 0.33,
legend_axis_line_linewidth = axis_line_linewidth,
legend_background_fill = plot_background_fill,
legend_key_fill = plot_background_fill,
legend_ticks_colour = legend_axis_line_colour,
Expand Down
12 changes: 6 additions & 6 deletions man/dark_mode_r.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/flex_mode_b.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/flex_mode_base.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/flex_mode_r.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/flex_mode_t.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions man/light_mode_r.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

86 changes: 43 additions & 43 deletions tests/testthat/_snaps/article-demo-light/gg-area.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit fe60eac

Please sign in to comment.