<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:joaopauloag-freedesktop@yahoo.com.br" title="João Paulo <joaopauloag-freedesktop@yahoo.com.br>"> <span class="fn">João Paulo</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Tango themed ODF MIME type icons with white background need redesign for better appearance on Windows and macOS with dark mode DE"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=122514">bug 122514</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Severity</td>
           <td>enhancement
           </td>
           <td>trivial
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Tango themed ODF MIME type icons with white background need redesign for better appearance on Windows and macOS with dark mode DE"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=122514#c6">Comment # 6</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Tango themed ODF MIME type icons with white background need redesign for better appearance on Windows and macOS with dark mode DE"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=122514">bug 122514</a>
              from <span class="vcard"><a class="email" href="mailto:joaopauloag-freedesktop@yahoo.com.br" title="João Paulo <joaopauloag-freedesktop@yahoo.com.br>"> <span class="fn">João Paulo</span></a>
</span></b>
        <pre>(In reply to V Stuart Foote from <a href="show_bug.cgi?id=122514#c4">comment #4</a>)
<span class="quote">> (In reply to Mike Kaganski from <a href="show_bug.cgi?id=122514#c3">comment #3</a>)
> > ... are not
> > theme-dependent. So I disagree with broadening of the initial proposal;
> > keeping things simple helps to do the right things step-by-step.

> Sure, but current set of Tango theme MIME icons all have a solid gradient
> background color--grey shading on white. While the HC icons have a solid
> black background.

> So the existing Tango design does not lend itself to simply setting a color
> transparent--the icons would just look wrong.

> Meaning redesign, adopting an icon theme that looks presentable with a
> transparent bg (and probably dynamic fg color)--or a more ambitious bg/fg
> response to DE theme--is still going to be needed.</span >

I created four screenshots to show there is no need to do a redesign, only to
add transparent background on all icons embedded at
"%ProgramFiles%\LibreOffice\program\soffice.bin" (the file that is referenced
at "DefaultIcon" subkeys on every HKLM\Software\Classes\LibreOffice.<file
extension>).

Detailed explanation:

* When showing a shorcut file icon, Windows gets its' icon path from the .lnk
file itself. In the case of LibreOffice's Start Menu program folder, the icons
come from
soffice.exe/sbase.exe/scalc.exe/sdraw.exe/simpress.exe/smath.exe/swriter.exe.
Those icons have transparent background and so they appear correctly on Light
Mode and Dark Mode, i.e., without black or white background square because
transparent means the color behind the icon, as two of the attached pictures
shows.

* When showing the Start Menu LibreOffice icons, Windows gets its' icons the
same way on the earlier paragraph. As those icons have transparent background,
doesn't matter the color the Start Menu is, Windows never shows a white
background behind them, and so the Start Menu accent color is shown behind
those icons.

* When showing the Open With shortcut menu, Windows gets its' icon path from
the Registry key at HKLM\Software\Classes\LibreOffice.<file
extension>\DefaultIcon, which is
"%ProgramFiles%\LibreOffice\program\soffice.bin,<icon identifier>", because
either HKLM\Software\Classes\<file extension>\(Default),
HKLM\Software\Classes\<file extension>\OpenWithList subkeys or
HKLM\Software\Classes\<file extension>\OpenWithProgIDs\(Default) points to it.
In this case, those icons doesn't have transparent backgrounds, but white
backgrounds, and so Windows paints the white background as a white square
behind the icon.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>