Application Icon/ja
│
Deutsch (de) │
English (en) │
español (es) │
日本語 (ja) │
português (pt) │
アプリケーションアイコンは通常アプリケーションのメインウインドウに表示されます。Application.Iconを設定することで制御することができます。
実行ファイルのアイコンを変更するには、OSに依存したテクニックを使う必要があります。
Windowsでアプリケーションアイコンを設定する
1. 例えば"project.rc"と名前をつけて、次のようなアイコンを含む新しいリソースファイルを作ります。:
MAINICON ICON "editor.ico"
2. プロジェクトの *.lprファイルに次の命令を入れます。
{$R project.rc}
version 0.9.24 以上で動作します。
Mac OS Xでアプリケーションアイコンを設定する
Mac OS XではApplicationバンドルのためにアイコンを設定する必要があります。 次のようにInfo.plistファイルにフィールドを追加します。
<key>CFBundleIconFile</key> <string>iconfile.icns</string>
iconfile.icnsの場所はMyBundle.app/Contents/Resourcesの中に入れます。 icnsファイルを作るためには、このページ が参考になるでしょう。
Linuxでアプリケーションアイコンを設定する
Under Linux application icons are located in special directories which are different on each Window Manager. The structure inside that directory, however, is standarized and described on the Icon Theme Specification
K Desktop Environment (KDE)でアプリケーションアイコンを設定する
You can find the directory for application icons for use by all users and for each user using the command:
kde-config --path icon
This should print a list of colon-separated paths to stdout.
GNOMEでアプリケーションアイコンを設定する
You can find the directory for application icons for use by all users and for each user using the command:
gnome-config --datadir
This should print a path to stdout, inside which is found a directory called pixmaps that attends to the Icon Theme Specification.