forked from qt-creator/qt-creator
Terminal: New keyboard lock icon
Change-Id: Ie3964d599fb15def190c51dd33351fa0224cacfc Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
BIN
src/plugins/terminal/images/keyboardlock.png
Normal file
BIN
src/plugins/terminal/images/keyboardlock.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 180 B |
BIN
src/plugins/terminal/images/keyboardlock@2x.png
Normal file
BIN
src/plugins/terminal/images/keyboardlock@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 333 B |
@@ -1,5 +1,7 @@
|
||||
<RCC>
|
||||
<qresource prefix="/terminal">
|
||||
<file>images/keyboardlock.png</file>
|
||||
<file>images/keyboardlock@2x.png</file>
|
||||
<file>images/settingscategory_terminal.png</file>
|
||||
<file>images/settingscategory_terminal@2x.png</file>
|
||||
<file>images/terminal.png</file>
|
||||
|
@@ -15,4 +15,11 @@ static Utils::Icon CLOSE_TERMINAL_ICON(
|
||||
{{":/terminal/images/terminal.png", Utils::Theme::IconsBaseColor},
|
||||
{":/utils/images/iconoverlay_close_small.png", Utils::Theme::IconsStopToolBarColor}});
|
||||
|
||||
static Utils::Icon LOCK_KEYBOARD_ICON(
|
||||
{{":/terminal/images/keyboardlock.png", Utils::Theme::IconsBaseColor},
|
||||
{":/codemodel/images/private.png", Utils::Theme::IconsBaseColor}});
|
||||
|
||||
static Utils::Icon UNLOCK_KEYBOARD_ICON(
|
||||
{{":/terminal/images/keyboardlock.png", Utils::Theme::IconsBaseColor}});
|
||||
|
||||
} // namespace Terminal
|
||||
|
@@ -247,10 +247,10 @@ void TerminalPane::initActions()
|
||||
auto updateLockKeyboard = [this](bool locked) {
|
||||
TerminalSettings::instance().lockKeyboard.setValue(locked);
|
||||
if (locked) {
|
||||
lockKeyboard.setIcon(Icons::LOCKED_TOOLBAR.icon());
|
||||
lockKeyboard.setIcon(LOCK_KEYBOARD_ICON.icon());
|
||||
lockKeyboard.setToolTip(Tr::tr("Keyboard shortcuts will be send to the Terminal"));
|
||||
} else {
|
||||
lockKeyboard.setIcon(Icons::UNLOCKED_TOOLBAR.icon());
|
||||
lockKeyboard.setIcon(UNLOCK_KEYBOARD_ICON.icon());
|
||||
lockKeyboard.setToolTip(Tr::tr("Keyboard shortcuts will be send to Qt Creator"));
|
||||
}
|
||||
};
|
||||
|
@@ -3604,6 +3604,42 @@
|
||||
id="use3673"
|
||||
transform="matrix(-1,0,0,1,2258,0)" />
|
||||
</g>
|
||||
<g
|
||||
id="src/plugins/terminal/images/keyboardlock"
|
||||
transform="translate(845,88.5)"
|
||||
style="display:inline">
|
||||
<use
|
||||
style="display:inline"
|
||||
transform="translate(1137,43.5)"
|
||||
height="100%"
|
||||
width="100%"
|
||||
id="use1952-7"
|
||||
xlink:href="#backgroundRect"
|
||||
y="0"
|
||||
x="0" />
|
||||
<rect
|
||||
style="fill:none;stroke:#000000"
|
||||
id="rect11662"
|
||||
width="13"
|
||||
height="13"
|
||||
x="1122.5"
|
||||
y="481"
|
||||
rx="2.5" />
|
||||
<rect
|
||||
style="fill:none;stroke:#000000"
|
||||
id="rect11664"
|
||||
width="9"
|
||||
height="8"
|
||||
x="1124.5"
|
||||
y="483"
|
||||
rx="1.3" />
|
||||
<path
|
||||
style="fill:none;stroke:#000000"
|
||||
d="m 1131,485 h -2 c -0.5,0 -1.5,0 -1.5,1 0,1 1,1 1.5,1 0.5,0 1.5,0 1.5,1 0,1 -1,1 -1.5,1 h -2"
|
||||
id="path5086-3"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cczczcc" />
|
||||
</g>
|
||||
</g>
|
||||
<g
|
||||
inkscape:groupmode="layer"
|
||||
|
Before Width: | Height: | Size: 361 KiB After Width: | Height: | Size: 362 KiB |
Reference in New Issue
Block a user