The BalsamiqMockups.cfg Configuration File

本文介绍如何通过BalsamiqMockups.cfg文件自定义Balsamiq for Desktop的各项设置,包括字体选择、智能对齐关闭、导出背景透明等,并提供了配置文件示例及非标准路径设置方法。

Balsamiq for Desktop allows for some customization via a simple XML file called BalsamiqMockups.cfg. The configuration file allows you to make some software modifications, such as:

  • Using another font
  • Disabling smart alignment snapping
  • Setting your exported PNGs to use transparent backgrounds
  • Setting a different selection color for controls
  • Setting a different folder than the default Documents/Balsamiq Mockups path

Saving your Config File#

Create the file in a text editor (you can use this sample BalsamiqMockups.cfg file as a starting point) and save it to your Local Store folder. You can find this folder by opening the "About" dialog and clicking on the "Open Local Store Folder" link (or go to this pageto see folder locations for all operating systems).

Note: the config file must be saved to plain text format! It will NOT work if you save your config file to RTF, or with the .cfg.txt or .cfg.rtf extensions. If you are using TextEdit.app, to save in plain text format select Format > Make Plain Text from the menu.


Sample File#

The config file might look like this:

<config>

  <fontFace>Architect Small Block</fontFace> 

  <rememberWindowSize>false</rememberWindowSize> 

  <useCookies>false</useCookies> 

  <documentsPath>C:\Documents And Settings\Administrator\Desktop</documentsPath> 

  <snappingEnabled>false</snappingEnabled> 

  <selectionColor>FF0000</selectionColor> 

  <transparentBackground>true</transparentBackground> 

</config>

Options#
  • The fontFace tag allows you to specify the name of a font on your computer to use instead of Balsamiq Sans.
  • Set the rememberWindowSize tag to false if you'd like Mockups to not try to remember the size and position of the application window (some video card drivers don't play well with Adobe AIR and Mockups won't start unless you set this to false).
  • Set useCookies to false if you'd like Mockups to not save any of your preferences on the current computer (preferences include the state of "show UI Library", "Show Graph Paper" and others).
  • If you don't want to use the default "My Documents" folder (often because it is on a remote server, not always connected) for the shared data of Mockups, then you can set documentsPath to the path of a folder of your choice. This is also useful to share symbols across projects.
  • Set snappingEnabled to false if you'd like to turn off snapping alltogether in the app.
  • Set selectionColor if you want to change the color we use for showing selection in the app.
  • Set transparentBackground to true if you want your PNGs to be exported with a transparent background instead of the default white one.

Setting up assets for non-typical Documents locations#

A config file is only necessary if you want to set up your documents outside of the typical "Documents/Balsamiq Mockups" folder. Account and Project assets should work without needing a config file in a typical set up.

If your computer username is Bob, for instance, and you want to use a folder in /Users/Bob/Documents/Work/Balsamiq Mockups/ set the documentsPath element like this:<documentsPath>/Users/Bob/Documents/Work</documentsPath>

Mockups is just looking for the parent location, and "Balsamiq Mockups" is assumed.

Please also see the article on sharing symbols across projects for more information about account assets.


Setting up an assets path for cloud drives#

Here are some examples for how to set up your documents path so that account assets will work with cloud drives. This assumes that you will have a folder named "Balsamiq Mockups" under your DropBox or Google Drive. Change your computer name where applicable below.

Mac OS

Dropbox

<documentsPath>/Volumes/Macintosh HD/Users/YOUR COMPUTER NAME/Dropbox</documentsPath>

Google Drive

<documentsPath>/Volumes/Macintosh HD/Users/YOUR COMPUTER NAME/Google Drive</documentsPath>

Windows
The path may vary depending on your version and setup of Windows. Please check Windows Explorer to get the correct path.

Dropbox

<documentsPath>C:\Users\YOUR COMPUTER NAME\Dropbox\</documentsPath>

Google Drive

<documentsPath>C:\Users\YOUR COMPUTER NAME\Google Drive\</documentsPath>

Please also see the article on sharing symbols across projects for more information about account assets.


转载:http://support.balsamiq.com/customer/portal/articles/111759-the-balsamiqmockups-cfg-configuration-file

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值