Unverified Commit 7a096acf authored by Rishi Suresh's avatar Rishi Suresh Committed by GitHub
Browse files

feat: added border_color option (#1000)

* feat: Allow customization of border color

* docs: Update readme
parent f9abae80
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ GitHub Readme Stats supports custom theming and you can also contribute new them

All you need to do is edit [themes/index.js](./themes/index.js) file and add your theme at the end of the file.

While creating the Pull request to add a new theme **don't forget to add a screenshot of how your theme looks**, you can also test how it looks using custom url parameters like `title_color`, `icon_color`, `bg_color`, `text_color`
While creating the Pull request to add a new theme **don't forget to add a screenshot of how your theme looks**, you can also test how it looks using custom url parameters like `title_color`, `icon_color`, `bg_color`, `text_color`, `border_color`

> NOTE: If you are contributing your theme just because you are using it personally, then you can [customize the looks](./readme.md#customization) of your card with URL params instead.

+2 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ module.exports = async (req, res) => {
    locale,
    disable_animations,
    border_radius,
    border_color,
  } = req.query;
  let stats;

@@ -76,6 +77,7 @@ module.exports = async (req, res) => {
        theme,
        custom_title,
        border_radius,
        border_color,
        locale: locale ? locale.toLowerCase() : null,
        disable_animations: parseBoolean(disable_animations),
      }),
+2 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ module.exports = async (req, res) => {
    cache_seconds,
    locale,
    border_radius,
    border_color,
  } = req.query;

  let repoData;
@@ -71,6 +72,7 @@ module.exports = async (req, res) => {
        bg_color,
        theme,
        border_radius,
        border_color,
        show_owner: parseBoolean(show_owner),
        locale: locale ? locale.toLowerCase() : null,
      }),
+3 −1
Original line number Diff line number Diff line
@@ -28,7 +28,8 @@ module.exports = async (req, res) => {
    exclude_repo,
    custom_title,
    locale,
    border_radius
    border_radius,
    border_color,
  } = req.query;
  let topLangs;

@@ -71,6 +72,7 @@ module.exports = async (req, res) => {
        theme,
        layout,
        border_radius,
        border_color,
        locale: locale ? locale.toLowerCase() : null,
      }),
    );
+2 −0
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ module.exports = async (req, res) => {
    api_domain,
    range,
    border_radius,
    border_color,
  } = req.query;

  res.setHeader("Content-Type", "image/svg+xml");
@@ -65,6 +66,7 @@ module.exports = async (req, res) => {
        theme,
        hide_progress,
        border_radius,
        border_color,
        locale: locale ? locale.toLowerCase() : null,
        layout,
        langs_count,
Loading