Difference between revisions of "Application Icon/ja"

From Free Pascal wiki
Jump to navigationJump to search
m (New page: {{Application Icon}} {{Japanese Menu}} アプリケーションアイコンは通常アプリケーションのメインウインドウに表示されます。Application.Iconを設定...)
 
 
(2 intermediate revisions by the same user not shown)
Line 23: Line 23:
 
==Mac OS Xでアプリケーションアイコンを設定する==
 
==Mac OS Xでアプリケーションアイコンを設定する==
  
 +
Mac OS XではApplicationに付随したアイコンを設定する必要があります。
 +
次のようにInfo.plistファイルにフィールドを追加します。
  
Under Mac OS X it is necessary to set an icon for the Application Bundle. This is done by adding a field to the Info.plist file, like this:
+
:
  
 
   <key>CFBundleIconFile</key>
 
   <key>CFBundleIconFile</key>
 
   <string>iconfile.icns</string>
 
   <string>iconfile.icns</string>
  
Where iconfile.icns is located inside MyBundle.app/Contents/Resources
+
iconfile.icnsの場所はMyBundle.app/Contents/Resourcesの中に入れます。
 
+
icnsファイルを作るためには、[http://www.macinstruct.com/node/59 このページ]
You can find instructions to create an icns file [http://www.macinstruct.com/node/59 here]
+
が参考になるでしょう。
  
 
==Linuxでアプリケーションアイコンを設定する==
 
==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 [http://www.freedesktop.org/Standards/icon-theme-spec Icon Theme Specification]
+
Linuxアプリケーションでのアイコンはそれぞれのウインドウマネージャごとに別々の、特別なディレクトリにあります。
 +
しかしながら、そのディレクトリの中は[http://www.freedesktop.org/Standards/icon-theme-spec Icon Theme Specification]で標準化されています。
  
 
===K Desktop Environment (KDE)でアプリケーションアイコンを設定する===
 
===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
 
  kde-config --path icon
  
This should print a list of colon-separated paths to stdout.
+
コロンで区切られたパスがstdoutに出力されます。
  
 
===GNOMEでアプリケーションアイコンを設定する===
 
===GNOMEでアプリケーションアイコンを設定する===
  
You can find the directory for application icons for use by all users and for each user using the command:
+
すべてのユーザーで使うアプリケーションのアイコン、あるいはそれぞれのユーザーが使うアイコンのフォルダを次のコマンドで見つけることができます。
  
 
  gnome-config --datadir
 
  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.
+
stdoutにパスを出力します。その中身はアイコンテーマ定義のpixmapsと呼ばれるディレクトリを見つけます。

Latest revision as of 14:06, 18 July 2008

Deutsch (de) English (en) español (es) 日本語 (ja) português (pt)

日本語版メニュー
メインページ - Lazarus Documentation日本語版 - 翻訳ノート - 日本語障害情報

アプリケーションアイコンは通常アプリケーションのメインウインドウに表示されます。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でアプリケーションアイコンを設定する

Linuxアプリケーションでのアイコンはそれぞれのウインドウマネージャごとに別々の、特別なディレクトリにあります。 しかしながら、そのディレクトリの中はIcon Theme Specificationで標準化されています。

K Desktop Environment (KDE)でアプリケーションアイコンを設定する

すべてのユーザーで使うアプリケーションのアイコン、あるいはそれぞれのユーザーが使うアイコンのフォルダを次のコマンドで見つけることができます。

kde-config --path icon

コロンで区切られたパスがstdoutに出力されます。

GNOMEでアプリケーションアイコンを設定する

すべてのユーザーで使うアプリケーションのアイコン、あるいはそれぞれのユーザーが使うアイコンのフォルダを次のコマンドで見つけることができます。

gnome-config --datadir

stdoutにパスを出力します。その中身はアイコンテーマ定義のpixmapsと呼ばれるディレクトリを見つけます。