如何让Dash在2D中全屏打开?
如何让Unity 2D中的破折号全屏打开?
12.04
幸运的是,这在12.04现在非常简单
首先打开Dash
然后单击最大化按钮:
这会记住Dash开始和会话重新登录之间的设置。
11.04
我找到了解决方法来做到这一点。
打开文件/usr/share/unity-2d/places/dash.qml
。
找到这个代码:
if (currentPage != undefined) { currentPage.visible = false } currentPage = page currentPage.visible = true dashView.dashMode = DashDeclarativeView.FullScreenMode //AND ADD THIS LINE }
注意:我在PPA的Unity-2d的每日版本中测试了这个,我不确定它是否适用于Natty版本。
编辑:Natty版本上的代码类似,位于第42行和第50行之间。
11.10
这适用于11.10:添加相同的行,而不是’activateHome’,把它称为’连接’:
Connections { target: dashView onActiveChanged: { if (!dashView.active) { /* FIXME: currentPage needs to stop pointing to pageLoader.item that is about to be invalidated otherwise a crash occurs because SearchEntry has a binding that refers to currentPage and tries to access it. Ref.: https://bugs.launchpad.net/ubuntu/+source/unity-2d/+bug/817896 https://bugreports.qt.nokia.com/browse/QTBUG-20692 */ deactivateActiveLens() currentPage = undefined pageLoader.source = "" } dashView.dashMode = DashDeclarativeView.FullScreenMode //THIS IS THE NEW LINE } }
11.04
刚刚找到了如何在Natty中修复它。 添加行:
dashView.dashMode = DashDeclarativeView.FullScreenMode
在函数activateHome()中。 例如:
function activateHome() { pageLoader.source = "Home.qml" /* Take advantage of the fact that the loaded qml is local and setting the source loads it immediately making pageLoader.item valid */ activatePage(pageLoader.item) pageLoader.item.shortcutsActive = true dashView.activePlaceEntry = "" dashView.dashMode = DashDeclarativeView.FullScreenMode // ADD THIS LINE }