Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[create-theme]: Tidy Popup #1150

Closed
1 task
Dinno-DEV opened this issue Feb 26, 2025 · 1 comment
Closed
1 task

[create-theme]: Tidy Popup #1150

Dinno-DEV opened this issue Feb 26, 2025 · 1 comment
Labels
new-theme Submit a theme to be added to the theme library

Comments

@Dinno-DEV
Copy link
Contributor

Name

Tidy Popup

Description

Modifies popup panels, changing divider lines with empty spacer, and makes the button more compact.

Homepage

https://github.com/Dinno-DEV/zen-tidy-popup

Image

https://i.imgur.com/DXXJbe3.png

Type

  • JSON Color Theme

Theme Styles

/* These are for the popups */
menupopup, panel {
  &::part(content) {
    display: flex;
    box-sizing: border-box;
    padding: 6px !important;
    color: var(--panel-color);
/*   
    background: var(--panel-background);
*/
    border-radius: 15px;
    border: 2px solid color-mix(in hsl,var(--panel-border-color), transparent 70%);
    width: var(--panel-width);
    box-shadow: var(--panel-shadow);
    margin: var(--panel-shadow-margin);
    min-width: 0;
    min-height: 0;
    max-height: round(up, 100% - 2 * var(--panel-shadow-margin), 1px);
    max-width: round(up, 100% - 2 * var(--panel-shadow-margin), 1px);
    overflow: clip;
    scrollbar-color: transparent !important;
  }
}

panel toolbarseparator {
  appearance: none;
  min-height: 0;
  border-top: 3px solid color-mix(in hsl,var(--panel-border-color), transparent 100%);
  margin: 8px 4px;
  padding: 0;
}

:is(panelview .toolbarbutton-1, toolbarbutton.subviewbutton, .widget-overflow-list .toolbarbutton-1, .toolbaritem-combined-buttons:is(:not([cui-areatype="toolbar"]), [overflowedItem="true"]) > toolbarbutton) {
  &:not([disabled]) {
    padding: 5px 10px !important;
    border-radius: 8px !important;
  }
}

@media (-moz-bool-pref: "mod.tidypopup.usecustomhovercolor") {
  :is(panelview .toolbarbutton-1, toolbarbutton.subviewbutton, .widget-overflow-list .toolbarbutton-1, .toolbaritem-combined-buttons:is(:not([cui-areatype="toolbar"]), [overflowedItem="true"]) > toolbarbutton) {
    &:not([disabled]):hover {
      background-color: var(--mod-tidypopup-hovercolor); 
    }
  }
}

@media not (-moz-bool-pref: "mod.tidypopup.usecustomhovercolor") {
  :is(panelview .toolbarbutton-1, toolbarbutton.subviewbutton, .widget-overflow-list .toolbarbutton-1, .toolbaritem-combined-buttons:is(:not([cui-areatype="toolbar"]), [overflowedItem="true"]) > toolbarbutton) {
    &:not([disabled]):hover {
      background-color: rgba(80, 80, 250, 1); 
    }
  }
}
  
#appMenu-zoom-controls {
  border-top: 3px solid color-mix(in hsl,var(--panel-border-color), transparent 100%);
  padding-top: 12px !important;
  padding-inline: calc(var(--arrowpanel-menuitem-padding-inline) + var(--uc-arrowpanel-menuitem-margin-inline)) var(--uc-arrowpanel-menuitem-margin-inline);
  padding-block: var(--uc-panel-zoom-padding-block);
  margin: var(--panel-separator-margin-vertical) 0 calc(var(--panel-separator-margin-vertical) * -1);
}

#appMenu-zoom-controls > #appMenu-fullscreen-button2::before {
  border-inline-start: 3px none color-mix(in hsl,var(--panel-border-color), transparent 100%);
}

menu, menuitem, menucaption {
  border-radius: 8px !important;
  padding: 5px 10px !important;
  margin: 2px !important;
  border-radius: 8px !important;
}

@media (-moz-bool-pref: "mod.tidypopup.usecustomhovercolor"){
  menu, menuitem, menucaption {
    &:not([disabled]):hover {
      background-color: var(--mod-tidypopup-hovercolor); 
    }
  }
}

@media not (-moz-bool-pref: "mod.tidypopup.usecustomhovercolor"){
  menu, menuitem, menucaption {
    &:not([disabled]):hover {
      background-color: rgba(80, 80, 250, 1); 
    }
  } 
}

menuseparator::before {
  border-top: 3px solid color-mix(in hsl,var(--panel-border-color), transparent 100%);
}

.panel-view-body-unscrollable {
  border-radius: 8px !important; 
  background: var(--button-background-color-hover) !important;
  align-items: center;
  padding: 3px !important;
}

.downloadMainArea {
  padding-left: 10px !important;
}

Readme

# Zen Tidy Popup
Modifies popup panels, changing divider lines with empty spacer, and makes the button more compact.

There is an option for custom hover color for the buttons. You need to check the box and enter the custom color in rgba, hsla, or hex format.

Preferences

[   
    {
        "property": "mod.tidypopup.usecustomhovercolor",
        "label": "Use custom hover color",
        "type": "checkbox",
        "defaultValue": false
    },
    {
        "property": "mod.tidypopup.hovercolor",
        "label": "Button color when hovered",
        "type": "string",
        "defaultValue": "rgba(80, 80, 250, 1)"
    }
]
@Dinno-DEV Dinno-DEV added the new-theme Submit a theme to be added to the theme library label Feb 26, 2025
Copy link
Contributor

Thank you for your contribution! 🎉

Your theme has been successfully submitted. The maintainers will review it and get back to you soon.

Here are some details about your submission:

If you have any questions or need help, feel free to ask in the comments below or in the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-theme Submit a theme to be added to the theme library
Projects
None yet
Development

No branches or pull requests

1 participant