From 6b20daf591fa0cdb7113d7bed3bd0bc8e751d025 Mon Sep 17 00:00:00 2001 From: Aemiii91 <44569252+Aemiii91@users.noreply.github.com> Date: Sat, 18 May 2024 23:34:56 +0200 Subject: [PATCH] New pagination arrow buttons --- .github/defs.py | 3 +++ .github/generate.py | 6 +++--- .github/template/index.template.md | 16 ++++++++++++++++ README.md | 16 ++++++++++++++++ generated/custom/index-01-79.md | 6 +++--- generated/custom/index-02-6b.md | 10 +++++----- generated/custom/index-03-11.md | 10 +++++----- generated/custom/index-04-d8.md | 10 +++++----- generated/custom/index-05-2a.md | 10 +++++----- generated/custom/index-06-21.md | 10 +++++----- generated/custom/index-07-fc.md | 10 +++++----- generated/custom/index-08-bc.md | 10 +++++----- generated/custom/index-09-9d.md | 10 +++++----- generated/custom/index-10-be.md | 10 +++++----- generated/custom/index-11-8c.md | 10 +++++----- generated/custom/index-12-ca.md | 10 +++++----- generated/custom/index.md | 6 +++--- generated/icons_themes/index-01-79.md | 6 +++--- generated/icons_themes/index-02-6b.md | 10 +++++----- generated/icons_themes/index-03-11.md | 10 +++++----- generated/icons_themes/index.md | 6 +++--- generated/remixed/index-01-79.md | 6 +++--- generated/remixed/index.md | 6 +++--- 23 files changed, 121 insertions(+), 86 deletions(-) diff --git a/.github/defs.py b/.github/defs.py index 88941781..2d71c40c 100644 --- a/.github/defs.py +++ b/.github/defs.py @@ -41,6 +41,9 @@ def rel_path(path: str, from_path: str) -> str: PREVIEW_ICON = f"" +PREV_PAGE_ICON_URL = "https://github.com/OnionUI/Themes/assets/44569252/fb1e949d-00a9-47d2-ad8b-cf273dbcf1bd" +NEXT_PAGE_ICON_URL = "https://github.com/OnionUI/Themes/assets/44569252/a0717376-2b5b-4534-9eba-4d2d3961f06b" + NB_SPACE = " " NB_SPACER = NB_SPACE * 2 LB_SPACER = " " + NB_SPACE diff --git a/.github/generate.py b/.github/generate.py index 6c1cccd6..015b3673 100644 --- a/.github/generate.py +++ b/.github/generate.py @@ -145,10 +145,10 @@ def generate_pagination(current_page: int, num_pages: int) -> str: buffer = "" buffer += """---\n\n""" if current_page > 0: - buffer += f"""""" - buffer += f"""""" + buffer += f"""""" + buffer += f"""""" if current_page < num_pages - 1: - buffer += f"" + buffer += f"""""" buffer += "
\n\n[❮{NB_SPACER}PREV]({format_page_filename(current_page - 1, num_pages)})\n\n\n\n{generate_page_links(current_page, num_pages)}\n\n\n\n[![Previous page]({PREV_PAGE_ICON_URL})]({format_page_filename(current_page - 1, num_pages)})\n\n\n\n{generate_page_links(current_page, num_pages)}\n\n\n\n[NEXT{NB_SPACER}❯]({format_page_filename(current_page + 1, num_pages)})\n\n\n\n[![Next page]({NEXT_PAGE_ICON_URL})]({format_page_filename(current_page + 1, num_pages)})\n\n
" return buffer diff --git a/.github/template/index.template.md b/.github/template/index.template.md index e2a587a8..1770ef7b 100644 --- a/.github/template/index.template.md +++ b/.github/template/index.template.md @@ -19,6 +19,14 @@ $THEMES_NEW

 

+
+ +[SHOW ALL THEMES](generated/custom/index.md) + +
+ +

 

+ ## Recently Updated Themes @@ -26,6 +34,14 @@ $THEMES_RECENTS

 

+
+ +[SHOW ALL THEMES](generated/custom/index.md) + +
+ +

 

+ ## How to Install diff --git a/README.md b/README.md index 7428b41c..04017609 100644 --- a/README.md +++ b/README.md @@ -131,6 +131,14 @@ Do you want to share your own custom themes with the community? ❤️ +

 

+ +
+ +[SHOW ALL THEMES](generated/custom/index.md) + +
+

 

@@ -178,6 +186,14 @@ Do you want to share your own custom themes with the community? ❤️ +

 

+ +
+ +[SHOW ALL THEMES](generated/custom/index.md) + +
+

 

diff --git a/generated/custom/index-01-79.md b/generated/custom/index-01-79.md index 6925d282..afb2c81c 100644 --- a/generated/custom/index-01-79.md +++ b/generated/custom/index-01-79.md @@ -210,11 +210,11 @@ --- -
+
-[❮  PREV](index-02-6b.md) +[![Previous page](https://github.com/OnionUI/Themes/assets/44569252/fb1e949d-00a9-47d2-ad8b-cf273dbcf1bd)](index-02-6b.md) - + [ 1 ](index.md) … [ 7 ](index-07-fc.md) [ 8 ](index-06-21.md) [ 9 ](index-05-2a.md) [ 10 ](index-04-d8.md) [ 11 ](index-03-11.md) [ 12 ](index-02-6b.md)  **13**  diff --git a/generated/custom/index-02-6b.md b/generated/custom/index-02-6b.md index db340b1d..b6463e78 100644 --- a/generated/custom/index-02-6b.md +++ b/generated/custom/index-02-6b.md @@ -210,16 +210,16 @@ --- -
+
-[❮  PREV](index-03-11.md) +[![Previous page](https://github.com/OnionUI/Themes/assets/44569252/fb1e949d-00a9-47d2-ad8b-cf273dbcf1bd)](index-03-11.md) - + [ 1 ](index.md) … [ 7 ](index-07-fc.md) [ 8 ](index-06-21.md) [ 9 ](index-05-2a.md) [ 10 ](index-04-d8.md) [ 11 ](index-03-11.md)  **12**  [ 13 ](index-01-79.md) - + -[NEXT  ❯](index-01-79.md) +[![Next page](https://github.com/OnionUI/Themes/assets/44569252/a0717376-2b5b-4534-9eba-4d2d3961f06b)](index-01-79.md)
\ No newline at end of file diff --git a/generated/custom/index-03-11.md b/generated/custom/index-03-11.md index 6f601eaf..f3666f37 100644 --- a/generated/custom/index-03-11.md +++ b/generated/custom/index-03-11.md @@ -210,16 +210,16 @@ --- -
+
-[❮  PREV](index-04-d8.md) +[![Previous page](https://github.com/OnionUI/Themes/assets/44569252/fb1e949d-00a9-47d2-ad8b-cf273dbcf1bd)](index-04-d8.md) - + [ 1 ](index.md) … [ 7 ](index-07-fc.md) [ 8 ](index-06-21.md) [ 9 ](index-05-2a.md) [ 10 ](index-04-d8.md)  **11**  [ 12 ](index-02-6b.md) [ 13 ](index-01-79.md) - + -[NEXT  ❯](index-02-6b.md) +[![Next page](https://github.com/OnionUI/Themes/assets/44569252/a0717376-2b5b-4534-9eba-4d2d3961f06b)](index-02-6b.md)
\ No newline at end of file diff --git a/generated/custom/index-04-d8.md b/generated/custom/index-04-d8.md index d4aa642a..87a10f7b 100644 --- a/generated/custom/index-04-d8.md +++ b/generated/custom/index-04-d8.md @@ -210,16 +210,16 @@ --- -
+
-[❮  PREV](index-05-2a.md) +[![Previous page](https://github.com/OnionUI/Themes/assets/44569252/fb1e949d-00a9-47d2-ad8b-cf273dbcf1bd)](index-05-2a.md) - + [ 1 ](index.md) … [ 7 ](index-07-fc.md) [ 8 ](index-06-21.md) [ 9 ](index-05-2a.md)  **10**  [ 11 ](index-03-11.md) [ 12 ](index-02-6b.md) [ 13 ](index-01-79.md) - + -[NEXT  ❯](index-03-11.md) +[![Next page](https://github.com/OnionUI/Themes/assets/44569252/a0717376-2b5b-4534-9eba-4d2d3961f06b)](index-03-11.md)
\ No newline at end of file diff --git a/generated/custom/index-05-2a.md b/generated/custom/index-05-2a.md index afa09bd5..c626796c 100644 --- a/generated/custom/index-05-2a.md +++ b/generated/custom/index-05-2a.md @@ -210,16 +210,16 @@ --- -
+
-[❮  PREV](index-06-21.md) +[![Previous page](https://github.com/OnionUI/Themes/assets/44569252/fb1e949d-00a9-47d2-ad8b-cf273dbcf1bd)](index-06-21.md) - + [ 1 ](index.md) … [ 7 ](index-07-fc.md) [ 8 ](index-06-21.md)  **9**  [ 10 ](index-04-d8.md) [ 11 ](index-03-11.md) [ 12 ](index-02-6b.md) [ 13 ](index-01-79.md) - + -[NEXT  ❯](index-04-d8.md) +[![Next page](https://github.com/OnionUI/Themes/assets/44569252/a0717376-2b5b-4534-9eba-4d2d3961f06b)](index-04-d8.md)
\ No newline at end of file diff --git a/generated/custom/index-06-21.md b/generated/custom/index-06-21.md index 06fc71c7..8fdf06c6 100644 --- a/generated/custom/index-06-21.md +++ b/generated/custom/index-06-21.md @@ -210,16 +210,16 @@ --- -
+
-[❮  PREV](index-07-fc.md) +[![Previous page](https://github.com/OnionUI/Themes/assets/44569252/fb1e949d-00a9-47d2-ad8b-cf273dbcf1bd)](index-07-fc.md) - + [ 1 ](index.md) …  [ 6 ](index-08-bc.md) [ 7 ](index-07-fc.md)  **8**  [ 9 ](index-05-2a.md) [ 10 ](index-04-d8.md) … [ 13 ](index-01-79.md) - + -[NEXT  ❯](index-05-2a.md) +[![Next page](https://github.com/OnionUI/Themes/assets/44569252/a0717376-2b5b-4534-9eba-4d2d3961f06b)](index-05-2a.md)
\ No newline at end of file diff --git a/generated/custom/index-07-fc.md b/generated/custom/index-07-fc.md index b54017ca..d16b907c 100644 --- a/generated/custom/index-07-fc.md +++ b/generated/custom/index-07-fc.md @@ -210,16 +210,16 @@ --- -
+
-[❮  PREV](index-08-bc.md) +[![Previous page](https://github.com/OnionUI/Themes/assets/44569252/fb1e949d-00a9-47d2-ad8b-cf273dbcf1bd)](index-08-bc.md) - + [ 1 ](index.md) …  [ 5 ](index-09-9d.md) [ 6 ](index-08-bc.md)  **7**  [ 8 ](index-06-21.md) [ 9 ](index-05-2a.md) … [ 13 ](index-01-79.md) - + -[NEXT  ❯](index-06-21.md) +[![Next page](https://github.com/OnionUI/Themes/assets/44569252/a0717376-2b5b-4534-9eba-4d2d3961f06b)](index-06-21.md)
\ No newline at end of file diff --git a/generated/custom/index-08-bc.md b/generated/custom/index-08-bc.md index 92474d1e..dbfcfd71 100644 --- a/generated/custom/index-08-bc.md +++ b/generated/custom/index-08-bc.md @@ -210,16 +210,16 @@ --- -
+
-[❮  PREV](index-09-9d.md) +[![Previous page](https://github.com/OnionUI/Themes/assets/44569252/fb1e949d-00a9-47d2-ad8b-cf273dbcf1bd)](index-09-9d.md) - + [ 1 ](index.md) …  [ 4 ](index-10-be.md) [ 5 ](index-09-9d.md)  **6**  [ 7 ](index-07-fc.md) [ 8 ](index-06-21.md) … [ 13 ](index-01-79.md) - + -[NEXT  ❯](index-07-fc.md) +[![Next page](https://github.com/OnionUI/Themes/assets/44569252/a0717376-2b5b-4534-9eba-4d2d3961f06b)](index-07-fc.md)
\ No newline at end of file diff --git a/generated/custom/index-09-9d.md b/generated/custom/index-09-9d.md index dc037d06..d8e88c13 100644 --- a/generated/custom/index-09-9d.md +++ b/generated/custom/index-09-9d.md @@ -210,16 +210,16 @@ --- -
+
-[❮  PREV](index-10-be.md) +[![Previous page](https://github.com/OnionUI/Themes/assets/44569252/fb1e949d-00a9-47d2-ad8b-cf273dbcf1bd)](index-10-be.md) - + [ 1 ](index.md) [ 2 ](index-12-ca.md) [ 3 ](index-11-8c.md) [ 4 ](index-10-be.md)  **5**  [ 6 ](index-08-bc.md) [ 7 ](index-07-fc.md) … [ 13 ](index-01-79.md) - + -[NEXT  ❯](index-08-bc.md) +[![Next page](https://github.com/OnionUI/Themes/assets/44569252/a0717376-2b5b-4534-9eba-4d2d3961f06b)](index-08-bc.md)
\ No newline at end of file diff --git a/generated/custom/index-10-be.md b/generated/custom/index-10-be.md index 3c3634c9..d802ce2d 100644 --- a/generated/custom/index-10-be.md +++ b/generated/custom/index-10-be.md @@ -210,16 +210,16 @@ --- -
+
-[❮  PREV](index-11-8c.md) +[![Previous page](https://github.com/OnionUI/Themes/assets/44569252/fb1e949d-00a9-47d2-ad8b-cf273dbcf1bd)](index-11-8c.md) - + [ 1 ](index.md) [ 2 ](index-12-ca.md) [ 3 ](index-11-8c.md)  **4**  [ 5 ](index-09-9d.md) [ 6 ](index-08-bc.md) [ 7 ](index-07-fc.md) … [ 13 ](index-01-79.md) - + -[NEXT  ❯](index-09-9d.md) +[![Next page](https://github.com/OnionUI/Themes/assets/44569252/a0717376-2b5b-4534-9eba-4d2d3961f06b)](index-09-9d.md)
\ No newline at end of file diff --git a/generated/custom/index-11-8c.md b/generated/custom/index-11-8c.md index 1aa30698..38ffdecc 100644 --- a/generated/custom/index-11-8c.md +++ b/generated/custom/index-11-8c.md @@ -210,16 +210,16 @@ --- -
+
-[❮  PREV](index-12-ca.md) +[![Previous page](https://github.com/OnionUI/Themes/assets/44569252/fb1e949d-00a9-47d2-ad8b-cf273dbcf1bd)](index-12-ca.md) - + [ 1 ](index.md) [ 2 ](index-12-ca.md)  **3**  [ 4 ](index-10-be.md) [ 5 ](index-09-9d.md) [ 6 ](index-08-bc.md) [ 7 ](index-07-fc.md) … [ 13 ](index-01-79.md) - + -[NEXT  ❯](index-10-be.md) +[![Next page](https://github.com/OnionUI/Themes/assets/44569252/a0717376-2b5b-4534-9eba-4d2d3961f06b)](index-10-be.md)
\ No newline at end of file diff --git a/generated/custom/index-12-ca.md b/generated/custom/index-12-ca.md index 49ed748b..67c06b63 100644 --- a/generated/custom/index-12-ca.md +++ b/generated/custom/index-12-ca.md @@ -210,16 +210,16 @@ --- -
+
-[❮  PREV](index.md) +[![Previous page](https://github.com/OnionUI/Themes/assets/44569252/fb1e949d-00a9-47d2-ad8b-cf273dbcf1bd)](index.md) - + [ 1 ](index.md)  **2**  [ 3 ](index-11-8c.md) [ 4 ](index-10-be.md) [ 5 ](index-09-9d.md) [ 6 ](index-08-bc.md) [ 7 ](index-07-fc.md) … [ 13 ](index-01-79.md) - + -[NEXT  ❯](index-11-8c.md) +[![Next page](https://github.com/OnionUI/Themes/assets/44569252/a0717376-2b5b-4534-9eba-4d2d3961f06b)](index-11-8c.md)
\ No newline at end of file diff --git a/generated/custom/index.md b/generated/custom/index.md index b9c671c7..bd405c60 100644 --- a/generated/custom/index.md +++ b/generated/custom/index.md @@ -210,12 +210,12 @@ --- -
+
 **1**  [ 2 ](index-12-ca.md) [ 3 ](index-11-8c.md) [ 4 ](index-10-be.md) [ 5 ](index-09-9d.md) [ 6 ](index-08-bc.md) [ 7 ](index-07-fc.md) … [ 13 ](index-01-79.md) - + -[NEXT  ❯](index-12-ca.md) +[![Next page](https://github.com/OnionUI/Themes/assets/44569252/a0717376-2b5b-4534-9eba-4d2d3961f06b)](index-12-ca.md)
\ No newline at end of file diff --git a/generated/icons_themes/index-01-79.md b/generated/icons_themes/index-01-79.md index 9a7f3a09..a61d9a76 100644 --- a/generated/icons_themes/index-01-79.md +++ b/generated/icons_themes/index-01-79.md @@ -154,11 +154,11 @@ --- -
+
-[❮  PREV](index-02-6b.md) +[![Previous page](https://github.com/OnionUI/Themes/assets/44569252/fb1e949d-00a9-47d2-ad8b-cf273dbcf1bd)](index-02-6b.md) - + [ 1 ](index.md) [ 2 ](index-03-11.md) [ 3 ](index-02-6b.md)  **4**  diff --git a/generated/icons_themes/index-02-6b.md b/generated/icons_themes/index-02-6b.md index 0c9fef82..f95d47cd 100644 --- a/generated/icons_themes/index-02-6b.md +++ b/generated/icons_themes/index-02-6b.md @@ -210,16 +210,16 @@ --- -
+
-[❮  PREV](index-03-11.md) +[![Previous page](https://github.com/OnionUI/Themes/assets/44569252/fb1e949d-00a9-47d2-ad8b-cf273dbcf1bd)](index-03-11.md) - + [ 1 ](index.md) [ 2 ](index-03-11.md)  **3**  [ 4 ](index-01-79.md) - + -[NEXT  ❯](index-01-79.md) +[![Next page](https://github.com/OnionUI/Themes/assets/44569252/a0717376-2b5b-4534-9eba-4d2d3961f06b)](index-01-79.md)
\ No newline at end of file diff --git a/generated/icons_themes/index-03-11.md b/generated/icons_themes/index-03-11.md index faa8f8fa..2624a85d 100644 --- a/generated/icons_themes/index-03-11.md +++ b/generated/icons_themes/index-03-11.md @@ -210,16 +210,16 @@ --- -
+
-[❮  PREV](index.md) +[![Previous page](https://github.com/OnionUI/Themes/assets/44569252/fb1e949d-00a9-47d2-ad8b-cf273dbcf1bd)](index.md) - + [ 1 ](index.md)  **2**  [ 3 ](index-02-6b.md) [ 4 ](index-01-79.md) - + -[NEXT  ❯](index-02-6b.md) +[![Next page](https://github.com/OnionUI/Themes/assets/44569252/a0717376-2b5b-4534-9eba-4d2d3961f06b)](index-02-6b.md)
\ No newline at end of file diff --git a/generated/icons_themes/index.md b/generated/icons_themes/index.md index f2acfefe..5c1d8acb 100644 --- a/generated/icons_themes/index.md +++ b/generated/icons_themes/index.md @@ -210,12 +210,12 @@ --- -
+
 **1**  [ 2 ](index-03-11.md) [ 3 ](index-02-6b.md) [ 4 ](index-01-79.md) - + -[NEXT  ❯](index-03-11.md) +[![Next page](https://github.com/OnionUI/Themes/assets/44569252/a0717376-2b5b-4534-9eba-4d2d3961f06b)](index-03-11.md)
\ No newline at end of file diff --git a/generated/remixed/index-01-79.md b/generated/remixed/index-01-79.md index 099c5717..5dd9342f 100644 --- a/generated/remixed/index-01-79.md +++ b/generated/remixed/index-01-79.md @@ -108,11 +108,11 @@ --- -
+
-[❮  PREV](index.md) +[![Previous page](https://github.com/OnionUI/Themes/assets/44569252/fb1e949d-00a9-47d2-ad8b-cf273dbcf1bd)](index.md) - + [ 1 ](index.md)  **2**  diff --git a/generated/remixed/index.md b/generated/remixed/index.md index 60766393..aa046124 100644 --- a/generated/remixed/index.md +++ b/generated/remixed/index.md @@ -210,12 +210,12 @@ --- -
+
 **1**  [ 2 ](index-01-79.md) - + -[NEXT  ❯](index-01-79.md) +[![Next page](https://github.com/OnionUI/Themes/assets/44569252/a0717376-2b5b-4534-9eba-4d2d3961f06b)](index-01-79.md)
\ No newline at end of file