Skip to content

Commit

Permalink
fix: add LTR icon
Browse files Browse the repository at this point in the history
  • Loading branch information
nattallius committed Aug 11, 2023
1 parent efbb8bf commit 05120e0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
14 changes: 10 additions & 4 deletions src/plugins/header/options/OptionIcons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,16 @@ export class UIPOptionIcons {

/** Default svg for rtl direction icon */
public static rtlDirectionSVG: HTMLElement = (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 37 17" fill="#4e4e4e">
{/* eslint-disable-next-line max-len */}
<path fill="#4e4e4e" d="M0.716797 0.545898H5.89453C7.06901 0.545898 8.06087 0.724935 8.87012 1.08301C9.68652 1.44108 10.306 1.97103 10.7285 2.67285C11.1582 3.36751 11.373 4.22331 11.373 5.24023C11.373 5.95638 11.2262 6.61165 10.9326 7.20605C10.6462 7.79329 10.2308 8.2946 9.68652 8.70996C9.14941 9.11816 8.50488 9.42253 7.75293 9.62305L7.17285 9.84863H2.30664L2.28516 8.16211H5.95898C6.70378 8.16211 7.32324 8.0332 7.81738 7.77539C8.31152 7.51042 8.68392 7.15592 8.93457 6.71191C9.18522 6.2679 9.31055 5.77734 9.31055 5.24023C9.31055 4.63867 9.19238 4.1123 8.95605 3.66113C8.71973 3.20996 8.34733 2.86263 7.83887 2.61914C7.33757 2.36849 6.68945 2.24316 5.89453 2.24316H2.79004V16.1865H0.716797V0.545898ZM9.8584 16.1865L6.05566 9.09668L8.21484 9.08594L12.0713 16.0576V16.1865H9.8584ZM19.1934 0.545898V16.1865H17.1523V0.545898H19.1934ZM24.2207 0.545898V2.24316H12.1357V0.545898H24.2207ZM36.0264 14.5V16.1865H28.2061V14.5H36.0264ZM28.6143 0.545898V16.1865H26.541V0.545898H28.6143Z"/>
</svg>
<>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 35 17" fill="#4e4e4e">
{/* eslint-disable-next-line max-len */}
<path fill="#4e4e4e" d="M10.202 14.5v1.686h-7.82V14.5h7.82ZM2.79.546v15.64H.717V.546H2.79Zm12.6 0v15.64h-2.04V.546h2.04Zm5.028 0v1.697H8.333V.546h12.085Zm2.32 0h5.178c1.174 0 2.166.179 2.976.537.816.358 1.436.888 1.858 1.59.43.695.645 1.55.645 2.567 0 .716-.147 1.372-.44 1.966a4.183 4.183 0 0 1-1.247 1.504c-.537.408-1.182.713-1.934.913l-.58.226h-4.866l-.021-1.687h3.674c.744 0 1.364-.129 1.858-.387.494-.265.866-.62 1.117-1.063a2.95 2.95 0 0 0 .376-1.472c0-.601-.118-1.128-.355-1.579-.236-.451-.608-.798-1.117-1.042-.501-.25-1.15-.376-1.944-.376h-3.105v13.944h-2.073V.545Zm9.142 15.64-3.803-7.09 2.16-.01 3.856 6.972v.128H31.88Z"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 37 17" fill="#4e4e4e">
{/* eslint-disable-next-line max-len */}
<path fill="#4e4e4e" d="M0.716797 0.545898H5.89453C7.06901 0.545898 8.06087 0.724935 8.87012 1.08301C9.68652 1.44108 10.306 1.97103 10.7285 2.67285C11.1582 3.36751 11.373 4.22331 11.373 5.24023C11.373 5.95638 11.2262 6.61165 10.9326 7.20605C10.6462 7.79329 10.2308 8.2946 9.68652 8.70996C9.14941 9.11816 8.50488 9.42253 7.75293 9.62305L7.17285 9.84863H2.30664L2.28516 8.16211H5.95898C6.70378 8.16211 7.32324 8.0332 7.81738 7.77539C8.31152 7.51042 8.68392 7.15592 8.93457 6.71191C9.18522 6.2679 9.31055 5.77734 9.31055 5.24023C9.31055 4.63867 9.19238 4.1123 8.95605 3.66113C8.71973 3.20996 8.34733 2.86263 7.83887 2.61914C7.33757 2.36849 6.68945 2.24316 5.89453 2.24316H2.79004V16.1865H0.716797V0.545898ZM9.8584 16.1865L6.05566 9.09668L8.21484 9.08594L12.0713 16.0576V16.1865H9.8584ZM19.1934 0.545898V16.1865H17.1523V0.545898H19.1934ZM24.2207 0.545898V2.24316H12.1357V0.545898H24.2207ZM36.0264 14.5V16.1865H28.2061V14.5H36.0264ZM28.6143 0.545898V16.1865H26.541V0.545898H28.6143Z"/>
</svg>
</>
) as HTMLElement;

/** Default svg for collapsed settings icon */
Expand Down
6 changes: 1 addition & 5 deletions src/plugins/header/options/option/option.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ uip-option {
background-repeat: no-repeat;
cursor: pointer;

&.dark-theme-option {
svg {
width: 1.5rem;
height: 1.5rem;
}
&.dark-theme-option, &.rtl-direction-option {

svg:last-child {
display: none;
Expand Down

0 comments on commit 05120e0

Please sign in to comment.