Packaging/Icons/zh: Difference between revisions

Weijia (talk | contribs)
Created page with "== 应用图标 =="
FuzzyBot (talk | contribs)
Updating to match new version of source page
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
<languages />
<span id="Application_icons"></span>
<span id="Application_icons"></span>
== 应用图标 ==
== 应用图标 ==


<div lang="en" dir="ltr" class="mw-content-ltr">
应用图标应该被安装于 <code>$out/share/icons/hicolor</code>
Application icons should be installed to <code>$out/share/icons/hicolor</code>.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
现已过时的 [https://github.com/nixos/nixpkgs/blob/c8e5c5c2228ddd58f01b7229e0bb4a92a9585990/pkgs/applications/office/scribus/1_4.nix scribus v1.4] 应用程序的示例代码:
Example code for the now outdated [https://github.com/nixos/nixpkgs/blob/c8e5c5c2228ddd58f01b7229e0bb4a92a9585990/pkgs/applications/office/scribus/1_4.nix scribus v1.4] app:
</div>


<syntaxHighlight lang=nix>
<syntaxHighlight lang=nix>
Line 43: Line 40:
</syntaxHighlight>
</syntaxHighlight>


<div lang="en" dir="ltr" class="mw-content-ltr">
<code>-background none</code> 将创建透明图标。替代方案<code>-background white</code>
<code>-background none</code> will create transparent icons.
Alternative: <code>-background white</code>.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<span id="See_also"></span>
=== See also ===
=== 另见 ===
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
处理图标的另一个示例:[https://github.com/NixOS/nixpkgs/blob/6d8e9b4f6197f7ce5106069f13debfc8e9b1fa8b/pkgs/applications/misc/obsidian/default.nix#L62 obsidian]
Another example handling icons [https://github.com/NixOS/nixpkgs/blob/6d8e9b4f6197f7ce5106069f13debfc8e9b1fa8b/pkgs/applications/misc/obsidian/default.nix#L62 obsidian].
</div>